Thread: Little math problem

  1. #1
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

    Little math problem

    Ok for the life of me I can't remember how to do this.
    Say I have an equasion:
    sin(x)-sin(y)=0
    and I want to solve for x.
    I can get to:
    sin(x)=sin(y)
    But how do I turn sin(x)= to x=???
    Its been a long time since I've taken any math classes.

    Thanks

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    arcsin, perhaps its sin^-1 on your calculator, or asin in <cmath>

    That equation has an infinite number of solutions, due to the periodic nature of sine.

    where n is any integer, the solutions to that are

    y = 2*pi*n + x
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    you can arcsine at both sides of the equation, and you get

    x=y

    but, as SilentStrike said, this is not completely accurate because there are infinite values for x for that sin(x) is equal.

    but arcsining would do the trick

    Oskilian

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Help!!c problem in math
    By feelsunny in forum Tech Board
    Replies: 2
    Last Post: 10-06-2007, 03:35 AM
  3. math problem
    By Chaplin27 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 06-09-2005, 02:37 PM
  4. Math Problem....
    By NANO in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 11-11-2002, 04:37 AM
  5. math problem
    By unixOZ in forum Linux Programming
    Replies: 4
    Last Post: 10-19-2002, 12:17 AM