Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Calculator 3 < Calculator 2 | Calculator 4 >
Back to Calculator 3    Comments List
You have an error Upload Images   Link   Email  
Gary James       
12 months ago
You shouldnt be adding the parentheses automatically.    If I want 6 + 3 , youre giving me (6 + 3) .
Gary James       
12 months ago
Apparently my subscript number 2 got stripped off my message.    It should have said ' You shouldn't be adding the parentheses automatically.    If I want 6 + 3^2 you're giving me (6 + 3)^ 2)
Kevin Robertson            
12 months ago
There is no error. The parentheses are needed for the 'X2' button.

Without them the answer to your equation is 15 which is not 9 squared.
The numbers (6 and 3) need to be summed first to get the correct answer of 81.
Gary James       
12 months ago
There is an error because for the given expression, the correct answer IS 15, not 81.   That's why it should be up to the user to place his own parentheses.
Gary James       
12 months ago
In mathematics the operator order of precedence is:
Parenthetic subexpressions
Exponentiation
Multiplication and Division
Addition and Subtraction
Kevin Robertson            
12 months ago

Kevin Robertson            
12 months ago
If you want 6+3^2 there is an exponentiation button that will give the equation without the parentheses.
It is only the X2 button that adds the parentheses to sum up those values first before squaring the sum.
Gary James       
12 months ago
In this version of Rich's calculator there IS NO EXPONENTIATION BUTTON.    By adding the parenthesis automatically the calculator changes my math expression.   I want the answer 15, NOT 81.

The code should just add the '^' and then call DoCalc to evaluate the expression.
Gary James       
12 months ago
Maybe this will clear it up.   What I was saying was, if I enter the expression "6 + 3", and then press the X' key I was expecting the calculator to only square the number 3, as it was the last number (or parenthetical expression) before pressing the X' key.   Instead, what the calculator does is square the entire expression.   By squaring the entire expression I'm forced to enter the keystrokes "3" ,"X'" , "+", "6", "=" to get my answer of 15.  That seems unnatural.   That's almost like the Reverse Polish notation used in the old HP Calculators.
Kevin Robertson            
12 months ago
This is the exact same functionality that the Windows Calculator has (there is no reason why the functionality of the X2 button should be different). For the calculation you want, as I said, use the exponentiation button (which is on the form). My screenshot below shows both calculations.
Kevin Robertson            
12 months ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Calculator 3.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/24/2024 7:48:06 AM. PLT: 1s