Page 1 sur 1

Equation.

Message non luPosté: 14 Jan 2018, 19:54
de Longines
Hello.
With this reference, he shows me a non-result. So B = 0. There should be a positive value. In program.

solve (46 * 180 / 3.14159 / b - 40 / (SIN (b / 2) * 2) = 0, b) | b> 0 and b <180

Re: Equation.

Message non luPosté: 14 Jan 2018, 21:39
de critor
By typing exactly what you've specified, I'm getting a positive value :
Image

Re: Equation.

Message non luPosté: 14 Jan 2018, 21:50
de Longines
Also, as I write on the command line, the result is correct. The error displays when the program is started

Re: Equation.

Message non luPosté: 14 Jan 2018, 22:30
de critor
What's the program code then ?

Re: Equation.

Message non luPosté: 15 Jan 2018, 16:09
de Longines
Code: Tout sélectionner
:test()
:Prgm
Input "K ",k
:Input "L ",l
:Input "A ", g
:solve(l * 180 / PI / b - g / (SIN(b / 2) * 2) = 0,b)|b > 0 and b < 180
b * k->n: Disp n
EndPrgm



p.s.
Calculator: TI-89

Re: Equation.

Message non luPosté: 15 Jan 2018, 17:53
de UnCurieux
Hello

it's :
Input "L ", l
and not :
Input "L ". l

Re: Equation.

Message non luPosté: 15 Jan 2018, 18:37
de Longines
The calculator has commas. I wrote a dot when typing on a computer keyboard.

Re: Equation.

Message non luPosté: 15 Jan 2018, 20:53
de Longines
After many attempts I found a solution. The equation should look like this:
nSolve (l * 180 / PI / b-g / SIN (b / 2) * 2) = 0, b) | b> 0 and b <180-> b