Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are 4 unknowns constants: a,b,c,p. The variable is phi and the result is d.

For phi={13,23,45,73} the results are d={32.08754292290807,32.1136624112758,32.1728430675844,32.2430287624866}

The equation is:

((sin(phi*pi/180))^2))) = d

How can I solve it in Mathematica?

share|improve this question
Have a look at Solve. – b.gatessucks Oct 31 '12 at 13:47

If I decipher your parentheses correctly, this is just a second order algebraic equation in u if you set u=Sin[phi]^2. So you may directly define a function

f[a_,b_,c_,p_] := Block[{A,B,C,Delta,U},
                         A=...;B=...;C=...;Delta=Sqrt[B^2-4*A C];

which first solves the equation in u, then takes the arcsin.

share|improve this answer
Note that C is protected! – sebhofer Oct 31 '12 at 16:11
@sebhofer It's inside a Block :) – R. M. Oct 31 '12 at 16:18
@rm-rf Damn ... – sebhofer Oct 31 '12 at 16:37
Thank you, I' m able to do second order algebraic equation but I don't known how to solve it. Can you provide exact code (or How can I put there all 4 solutions i.e. (For phi={13,23,45,73} the results are d=32.08754292290807,32.1136624112758,32.1728430675844,32.2430287624866})) Thank you in advance. Milos – Milos Oct 31 '12 at 18:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.