▼
Posts: 28
Threads: 1
Joined: Jan 1970
I took the following equation for flight MACH no from a CORVUS 500 RPN Calc manual (ala HP45)
SQRT 5X(((((400/661.5)^2)X (.2) -1)X (29.96/15)+1)^.286)-1)
ANSWER .82 (.8232688 using a TI 35 Galaxy Solar calc with AOS) I started with inermost parenthesis (400/661.5) then ^2 and continued. I tried using the parenthesis keys from left to right and got weird answers so i just used solved the equation the old fashioned way. I took Algebra I in 1961 so i learned to solve equations starting with innermost parenthesis. Oh i got the same asnwer with the following hp calculators also. HP21, 15C in addition to TI 30, SR 50, 50A, TI SR56, T8C and the infamous TI59. I even tried using a relic Sinclair Cambridge Alebraic calc. Got correct answer. I do not know the equation entry procedure for the newer TI/HP calcs with parenthesis control. I know one needs to enter powers and squeare roots before the numbers. That is not how i learned math. Who in the hell solves a problem by trying to square a number before entering it. Also why in the hell do the newer machines give an INCORRECT number if a NEGATIVE number is squared? I was taught that a NEGATIVE times a NEGATIVE = A Positive. Try that on a newer algebraic machine and you get a Negative -9 when squaring a -3. Unless You use parenthesis. Seems the newer machines do a weird CONE HEAD type of math. Ahhh, its probably only me. Iam a SLIDE RULE Babyboomer from the sexual revolution that learned to do math on a HP35, then a HP21, 25C, 15 and then began using AOS TI Calcs. They all gave same answers ecept the new generation of CALCS (HP 39g,48gII, 49g, ti 83....) that required a whole new way of entering equations.
Warmest regards to all
Andy
AEROSPACE ENGINEER
(A Babyboomer RPN/AOS power user
doing math the old fashioned way ala 60's.......)
▼
Posts: 4,587
Threads: 105
Joined: Jul 2005
Quote:
Also why in the hell do the newer machines give an INCORRECT number if a NEGATIVE number is squared? I was taught that a NEGATIVE times a NEGATIVE = A Positive. Try that on a newer algebraic machine and you get a Negative -9 when squaring a -3. Unless You use parenthesis. Seems the newer machines do a weird CONE HEAD type of math.
Andy, it's just a matter of operation priority. As they taught me in the late sixties, it is "hoch vor Punkt vor Strich" (i.e. exponentiation first, then multiplication and division, then addition and subtraction -- a nice example for a short German expression for a long English explanation). If you key in -3^2 , this is equivalent to -(3^2) , resulting in -9 also on a good old HP71 ;-)
No witchcraft at all :-)
▼
Posts: 901
Threads: 113
Joined: Jun 2007
The rule that is needed in this case isn't "...exponentiation first, then multiplication and division, then addition and subtraction... .
The rule that is needed is the old Navy rule for what to do when a machine doesn't do as one expects
"WHEN ALL ELSE FAILS, TRY READING THE INSTRUCTIONS"
▼
Posts: 72
Threads: 8
Joined: Jan 1970
I think there are two valid ways of looking at "-3^2" and getting the result "-9". Note that in a textbook there is no difference between the "-" in "-3^2" and the "-" in "5 - 2".
The first way treats the leading "-" as a unary minus. On the EOS calculators, the unary minus operator has a separate key vs. the minus key. [Of course, this is true on most every scientific calculator, but its the way they are used on an EOS calculator that is pertinent here.]. So, "[(-)]3^2" is executed as (-1)*3^2 as stated above.
Another way to think about the textbook representation is that the "-" in "5 - 2" as well as "-3^2" is a minus. In the textbook representation, any expression or subexpression beginning with a
"-" implies a subtraction from zero. That is, "-3^2", in a textbook, using this interpretation, is equivalent to "0 - 3^2". This would then be "0 - 9" or "-9".
In this interpretation, "(-3)^2" would, of course, be equivalent to
"(0 - 3) * (0 - 3)" and, of course, "(0 - 3)" is equivalent to
"-3".
Either interpretation will produce the same values as the end result. I prefer the latter methodology.
From a computer perspective, think about the statements,
integer ii;
...
ii := -3^2;
In a computer language that incorporates a "^" as an exponentiation operator. Conceptually, if the assignment statement was the first time ii was given a value, it might well have a zero in the corresponding register preceding the assignment and following the assignment, 9 would be subtracted from ii. [Needless to say this is only conceptual, as a value of -9 might be placed in ii as a result of this instruction, depending upon the actual implementation.]
There are several posts about this matter in old archives.
My objection to the EOS implementations is not in having a CHS and a minus. I don't like the fact that pressing a minus at the beginning of an expression on a new line automatically generates "ANS -", that is, subtract from previous answer. So "MINUS 3" becomes "ANS - 3" rather than "CHS 3". This causes all kinds of problems for students.
Note that some [not the latest] DAL/EOS SHARP calculators had a dual mode for their CHS operator. Before an expression or number, the CHS acted as a unary minus. After a number, it changed the sign of the preceding number by negating it and wrapping the number in parenthesis. I liked this implementation. It worked for individuals who were use to the previous generation of AOS calculators as well individuals who wished to enter an expression directly in textbook format. Unfortunately, the new implementation on DAL/EOS SHARP calculators does not seem to offer any direct way to enter an expression like "-3^2" because using CHS before or after the "3" results in "(-3)^2".
Posts: 28
Threads: 1
Joined: Jan 1970
Walter,
I got same result using an antique SHARP 1250A with Basic. Hmmmmmm
interesting. Of course, my son (Math Professor) says that -9 is correct result when squaring -3. Ugh!!
Have a great day. I return to my workstaion, fire up Pro/ENGINEER Wildfire and resume my solid modeling. Hey, that TI59 Emulator works great, so does the HP41 on the old COMPAQ with 23 inch flat screen. Cool......
Regards,
Andy
Babyboomer not ready to retire just yet-LOL
Posts: 1,792
Threads: 62
Joined: Jan 2005
Andy --
Quote:
Try that on a newer algebraic machine and you get a Negative -9 when squaring a -3.
All three of my EOS calculators (Texas Instruments TI-82, Casio fx-115MS, Sharp EL-520R) give -9 as the answer for the symbolic expression [change sign] 3 [x2]. This is as it should be, in my opinion.
-3 is equivalent to -1 * 3, and exponentials have precedence over multiplication, as Walter B. pointed out. EOS entails the parsing of symbolic expressions prior to evaluation.
Also, these calculators (two of them are modern cheapies!) provide an unshifted x2 key. I wish that my 1980's HP calc's had that, but there was the matter of limited keyboard space.
-- KS
Posts: 620
Threads: 14
Joined: Feb 2007
Hi!
No wonder, that you get strange answers, there is something wrong with your parentheses. When I copy-paste your equation into a FORTRAN source file (I had to add one pair of parentheses for the SQRT):
PROGRAM MACH
WRITE(*,*)
1 SQRT( 5*(((((400/661.5)**2)* (.2) -1)* (29.96/15)+1)**.286)-1))
END
the compiler complains like this:
"Syntax Error: Extra token " ) " was found."
Greetings, Max (baby-boomer aerospace engineer too :-) )
NB: I'm pretty sure (will try it at home tonight) that a Ti-92 should habe nor trouble with your calculation
Edited: 13 June 2006, 6:28 a.m.
▼
Posts: 28
Threads: 1
Joined: Jan 1970
Please forgive my error entry ways. Have a great day
Regards,
Andy
Babyboomer
▼
Posts: 620
Threads: 14
Joined: Feb 2007
Hi!
Quote: Please forgive my error entry ways.
... already forgiven :-) ... but if you could correct your equation then I would try it out for myself on different calculators to see what results I get. Just out of curiosity!
Greetings, Max
▼
Posts: 28
Threads: 1
Joined: Jan 1970
Max,
Here is link to Corvus 500 manual:
http://www.wass.net/manuals/Corvus%20500.pdf
Equation is found there, however if memory services me right, there was a different equation in the HP 21, HP25/25C manual as well.
Warmest regards,
Andy
▼
Posts: 212
Threads: 80
Joined: May 2008
Max,
On page 8 of Corvus 500 manual is where equation is found.
:)
▼
Posts: 28
Threads: 1
Joined: Jan 1970
Max,
I had a co-worker who owned a Corvus 500. Very elegant machine, had 3 re-chargeable batteries that were easy to change, a fraction of the cost of a HP 45. APF also had the 55 model with same logic.
Although construction not bullet proof like the HP units.
:)
▼
Posts: 28
Threads: 1
Joined: Jan 1970
Long live my NATIONAL SEMICONDUCTOR 4520 (made in Hong Kong). The ole NOVUS with vintage MINT AC/charger, leather case, comprehensive manual in Mint box with great RPN logic but dismal accuracy in the 6-7th place (who cares) does it all. Want a "El cheapo" Go for the NOVUS 4510 mathematician. No Scientific notation, but a lame 3-level stack that gets the job done-LOL
Have a great day all,
"LOVE THOSE RPN RELICS"
Andy
Posts: 620
Threads: 14
Joined: Feb 2007
Hi Andy,
Quote: Equation is found there ...
... OK, found it! My little FORTRAN-program (purest AOS so to say) no reads
PROGRAM MACH
WRITE(*,*)
1 SQRT(5.0 * ( (((((400.0/661.5)**2)* 0.2 + 1.0)**(1.4/0.4) -1.0)
2 * 29.96/15.0 + 1.0)**0.286 - 1.0) )
END
and displays 0.8232687712 as result. Now back to CATIA (no solid modelling though, but developing little additional functions).
Greetings, Max
▼
Posts: 28
Threads: 1
Joined: Jan 1970
Max,
CATIA? I did take a Saturday course in the latest version (10) a year ago hoping to use it at NGC, however i am still at Raytheon using Wildfire. I know some companeros that are using CATIA the old version in Seattle.
Take care Bro,
Warmest regards,
Andy
Fellow Aerospace engineer
▼
Posts: 620
Threads: 14
Joined: Feb 2007
Hi
Quote: 1. I did take a Saturday course in the latest version (10)
2. i am still at Raytheon using Wildfire.
3. I know some companeros that are using CATIA the old version in Seattle.
Straying Off-Topic, I know, but:
1. We are now already at version 15 (Catia V5)
2. Raytheon? In my other job, I fly small corporate aircraft and have been trying to convince one of my employers to buy one of your products: A Premier One. One of the most beautiful airplanes ever built!
3. My Catia (V4) work is mostly for their competition at Toulouse...
Greetings, Max
Edited: 13 June 2006, 9:24 a.m.
|