I Need Help Making Eq Solving Programs In My Fx2.0
#1
Posted 06 October 2004 - 01:01 AM
#2
Posted 06 October 2004 - 02:36 AM
"enter first number"?[->]F "enter 2nd number"?[->]M F/M[->]A
--edit--
for the c^2=a^2+b^2 one,
"anter number for a"?[->]A "enter number for b"?[->]B a^2+b^2[->]C
Edited by Bob Vila, 06 October 2004 - 02:47 AM.
#3
Posted 06 October 2004 - 02:48 AM
i dont really get what you are saying (u type in f and m and it gives u a right?), but, it should look like this...
"enter first number"?[->]F "enter 2nd number"?[->]M F/M[->]A
--edit--
for the c^2=a^2+b^2 one,"anter number for a"?[->]A "enter number for b"?[->]B a^2+b^2[->]C
Hey thanks for the code, Im also trying to get a program that wil ask for all of the variables, A, B and C.. and if I say I want to find the unknown "A" for instance in c^2=a^2+b^2, it will automaticaly solve the equationt to get A
#4
Posted 06 October 2004 - 07:58 AM
((EQUA->SOLVER)
#5
Posted 06 October 2004 - 08:16 AM
Girn, se Equa! But if you just want to know how you might solve such problems with Casio Basic programs not using EQUA, it?s this like:
"A?+B?=C" "A"?->A "B"?->B "C"?->C ClrText If A=0 Then "A" Sqrt (C-B?) Else If B=0 Then "B" Sqrt (C-A?) Else "C" A?+B? IfEnd IfEnd
Note: The square root is meant by "sqrt"; you have a special char on your calc, so don?t try to type in "sqrt", it?ll not work!
---Edit:---
I forgot to note: you have to set unknown vars to 0 in this piece of code
#6 Guest_Guest_*
Posted 06 October 2004 - 05:57 PM
Would be toooooo easy I guess
Girn, se Equa! But if you just want to know how you might solve such problems with Casio Basic programs not using EQUA, it?s this like:"A?+B?=C" "A"?->A "B"?->B "C"?->C ClrText If A=0 Then "A" Sqrt (C-B?) Else If B=0 Then "B" Sqrt (C-A?) Else "C" A?+B? IfEnd IfEnd
Note: The square root is meant by "sqrt"; you have a special char on your calc, so don?t try to type in "sqrt", it?ll not work!
---Edit:---
I forgot to note: you have to set unknown vars to 0 in this piece of code
Thanks I tried it but calc is giving error at this part "If A=0 Then"
#7 Guest_Guest_*
Posted 06 October 2004 - 05:58 PM
#8
Posted 06 October 2004 - 06:34 PM
delete the "Then" and put it on the next lineThanks I tried it but calc is giving error at this part "If A=0 Then"
#9 Guest_Guest_*
Posted 06 October 2004 - 08:49 PM
delete the "Then" and put it on the next line
ok now it works but when I put in the stuff and click enter.. it says A and thats it lol
doesnt say answer or anything just says A.. or if I try to find b then itll say B or c says C lol just says A then Done
#10 Guest_Guest_*
Posted 06 October 2004 - 09:20 PM
#11
Posted 06 October 2004 - 09:23 PM
//after all previous crap ClrText //if you want to, if you dont want to, change the #'s on the next command Locate 1,1,A Locate 2,1,B // etc
#12 Guest_Guest_*
Posted 06 October 2004 - 09:45 PM
#13
Posted 06 October 2004 - 09:50 PM
#14
Posted 06 October 2004 - 10:20 PM
ClrText "A"?[->]A "B"?[->]B "C"?[->]C If A=0 Then C^2-B^2[->]D (squarerootkey)D[->]E "A=" Locate 3,7,E IfEnd If B=0 Then C^2-A^2[->]F (squarerootkey)F[->]G "B=" Locate 3,7,G IfEnd If C=0 Then A^2+B^2[->]H (squarerootkey)H[->]I "C=" Locate 3,7,I IfEnd
#15
Posted 06 October 2004 - 10:38 PM
ClrText "F"?[->]A "M"?[->]B "X"?[->]C "A"?[->]D If A=0 Then BxCxD[->]E ClrText "F=" Locate 3,1,E IfEnd If B=0 Then A/(CxD)[->]F ClrText "M=" Locate 3,1,F IfEnd If C=o Then A/(BxD)[->]G ClrText "X=" Locate 3,1,G IfEnd If D=0 Then A/(BxC)[->]H ClrText "A=" Locate 3,1,H IfEnd
admittedly this isnt the most effient code, but it works
#16
Posted 07 October 2004 - 03:26 PM
You should also be able to rewrite the formula to the value you nedd ...
These formulas are eays ...
#17
Posted 07 October 2004 - 06:23 PM
i tend to be better at remembering words than numbers.
*goes of to read his new dilbert book*
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users