The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Using Solve/FSolve for Multiple Trig Equations
Replies: 7   Last Post: May 4, 2013 8:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 5/1/13
Using Solve/FSolve for Multiple Trig Equations
Posted: May 1, 2013 12:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am trying to solve for:

in the following equations where I, J, K are known.

I = siny * sinr + cosy * sinp * cosr
J = -siny * cosr + cosy * sinp * sinr
K = cosy * cosp

The code I have used is:

syms r p y i j k

S = solve(i == sin(y)*sin(r)+cos(y)*sin(p)*cos(r), j == -sin(y)*cos(r)+cos(y)*sin(p)*sin(r), k == cos(y)*cos(p))

but I cannot seem to get a result.

Any help would be appreciated.

Thank you,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.