If I have a solve command set up in a tibasic script like so: Solve(A=BC, A, 2), where B=2 and C=5 The Solve( will output 2. To my knowledge the syntax for solve is: Solve(expression, variable, guess, {lower, upper})sto>variable
I need some help figuring out whether this is an issue with my code, or a fundamental issue with the solve(, and I just need to write an iterative algorithm. Also possibly important is that A=CB is just an example equation, the full program will be using much more complicated programs than the example, and I am also aware that the solve( is not exactly right, because it iterates.
My full code to recreate the issue is:
“A=BC”sto>Str1
Str1sto>Y1
5sto>B
2sto>C
Disp solve(Y1,A,2)
In all cases I was expecting to get 10 as an output, but in every occasion the output is always the guess.
You shouldn't include the equals sign in your equation, so your equation should look like: "BC-A"
.
You can find more information about the solve command here.