+ Reply to Thread
Results 1 to 5 of 5

Solving implicit equations in excel

  1. #1
    Registered User
    Join Date
    06-15-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    2

    Exclamation Solving implicit equations in excel

    I have an implicit equation of two angles. I need to find one angle when I give the other angle as input. Can this be solved by using excel. If so, how?

    (SIN(CL))^2 +( SIN(CL))^2 - ((0.5)*(SIN(2*CL))*(SIN(2*CR))) - (2*((SIN(CL))^2)*((SIN(CR))^2)) - (SIN(CL-CR))^2 = 0.

    This is the equation and I need to find CR when I give CL as input

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Solving implicit equations in excel

    Rather than doing the algebra/trig to try to solve for CR in that equation, I'd recommend using solver.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    06-15-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    2

    Re: Solving implicit equations in excel

    I know that solver has to be used but I need help in using solver to solve this particular equation.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Solving implicit equations in excel

    One possible way of setting up solver

    calc_ang.jpg

    where B2 is the given CL value and B4 is the CR value calculated by solver but, but but. If you run solver with no value in B4 you get a result less than 1 so you have to convert that to an angle or you could give B4 a starting value greater than 1.

    Problem is that this function oscillates so by changing the starting point i.e. value of B4 you will find a number of solutions and the most obvious one where you don't need solver is to set angle CL equal to angle CR.

    Alf

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Solving implicit equations in excel

    Quote Originally Posted by Alf View Post
    Attachment 578438
    where B2 is the given CL value and B4 is the CR value calculated by solver
    I believe there is a design error. In your example, B2 is 40. I suspect that means 40 degrees. But you use SIN(B2). That should be SIN(RADIANS(B2)). Similarly for the other SIN usages.

    Alternatively, I recommend the design in attached Excel file (below). We enter CL in degrees in D2. It is converted to radians in C2; and we use SIN(C2), for example.

    Solver calculates CR in radians in C3. It is converted to degrees in D3. So D3 is the solution (CR) in degrees. See the attached JPG file (below).

    However....

    Quote Originally Posted by harshavardhank15 View Post
    (SIN(CL))^2 +( SIN(CL))^2 - ((0.5)*(SIN(2*CL))*(SIN(2*CR))) - (2*((SIN(CL))^2)*((SIN(CR))^2)) - (SIN(CL-CR))^2 = 0
    This is the equation and I need to find CR when I give CL as input
    I suspect the equation is incorrect, perhaps the victim of overuse of parentheses, which obscures the design.

    If the equation were correct, the first two terms are identical, and they can be combined as 2*SIN(CL)^2, or 2*(SIN(CL)^2) if you insist.

    The simplest rewrite of the equation is:

    =2*SIN(C2)^2 - 0.5*SIN(2*C2)*SIN(2*C3) - 2*SIN(C2)^2*SIN(C3)^2 - SIN(C2-C3)^2

    or

    =2*(SIN(C2)^2) - 0.5*SIN(2*C2)*SIN(2*C3) - 2*(SIN(C2)^2)*(SIN(C3)^2) - SIN(C2-C3)^2

    In any case, I suspect the equation is wrong, again perhaps the victim of the overuse of parentheses.

    It appears that CR = CL for all values of CL between 0.2 and 83 degrees.

    (I suspect that differences for other angles between 0 and 90 degrees are due to computational anomalies of the Excel SIN function.)

    What is the source of the equation?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by joeu2004; 06-18-2018 at 02:27 AM. Reason: format

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Solving Equations w/ Fractions using Excel
    By samdaman91 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-09-2021, 05:40 PM
  2. Solving Simultaneous Equations with Excel
    By soleimani1967 in forum Excel General
    Replies: 2
    Last Post: 01-04-2016, 10:29 PM
  3. solving equations
    By eng.green in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2013, 09:19 AM
  4. Solving equations
    By kvadre in forum Excel General
    Replies: 1
    Last Post: 03-27-2007, 04:19 PM
  5. solving equations using Excel
    By arnold_charming in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2005, 05:25 AM
  6. solving equations using Excel
    By arnold_charming in forum Excel General
    Replies: 3
    Last Post: 12-07-2005, 02:55 PM
  7. solving equations using Excel
    By arnold_charming in forum Excel General
    Replies: 0
    Last Post: 12-07-2005, 12:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1