sine inverse of something

  • Thread starter Water Cooler v2
  • Start date
W

Water Cooler v2

What is the inverse of the sine function? I've been pulling my hair and
I have no clue nor memory of how to go about solving this little
expression:

sine-1 (read sine inverse) of (1-(x/y))

An answer will be appreciated. Thanks!
 
I

Irrwahn Grausewitz

Water Cooler v2 said:
What is the inverse of the sine function? I've been pulling my hair and
I have no clue nor memory of how to go about solving this little
expression:

sine-1 (read sine inverse) of (1-(x/y))

To compute the inverse sine aka arcsine in C you should have look at
the asin function; and don't forget to #include <math.h>.

Best regards
 
A

ajm

Water said:
What is the inverse of the sine function? I've been pulling my hair and
I have no clue nor memory of how to go about solving this little
expression:

sine-1 (read sine inverse) of (1-(x/y))

An answer will be appreciated. Thanks!

as the other post mentioned asin is the appropriate ANSI C function.

but! asin (in math.h) is a function of a single variable (e.g., x) not
two (e.g., x,y) - are you looking to implement a multivariate inverse
sine function (not part of math.h) or just confused ?

hth,
ajm.
 
X

XXXXXX.working.in.my.blood

i don't think there are multi-variables asin functions
the argument might have an expression involving more than one variable
regards
bharath
 
A

ajm

the post was probably meant to be interpreted as composition,i.e.,

f(x,y) = 1 - (x/y)

and the post asked how to compute the composition of sine-1 and f.
 
K

Keith Thompson

ajm said:
as the other post mentioned asin is the appropriate ANSI C function.

but! asin (in math.h) is a function of a single variable (e.g., x) not
two (e.g., x,y) - are you looking to implement a multivariate inverse
sine function (not part of math.h) or just confused ?

I think the OP is just looking for asin(1.0 - x/y).
 
W

Walter Roberson

What is the inverse of the sine function?

-I * log( sqrt(1-x*x) + I * x)

where I is the usual complex root of -1.

I've been pulling my hair and
I have no clue nor memory of how to go about solving this little
expression:
sine-1 (read sine inverse) of (1-(x/y))

If you don't have a good symbolic manipulation package (e.g., Maple)
handy, you need to approximate it, such as via a Taylor series...
but then you'd have to Taylor near some particular point, such as

[fixed width font required for below]

maple> taylor(arcsin(x),x=0,9);
3 5 7 9
x + 1/6 x + 3/40 x + 5/112 x + O(x )

maple> subs(x=1-(x/y),%);
3 5 7 9
1 - x/y + 1/6 (1 - x/y) + 3/40 (1 - x/y) + 5/112 (1 - x/y) + O((1 - x/y) )

maple> simplify(%);
3 5 7 9
1 - x/y + 1/6 (1 - x/y) + 3/40 (1 - x/y) + 5/112 (1 - x/y) + O((1 - x/y) )

the error of which would increase as x moved away from 0.
 
I

Irrwahn Grausewitz

XXXXXX.working.in.my.blood said:
where did u find that???
bharath

Find what? Please preserve some context when replying to a post,
so others might have a fighting chance to find out what you are
talking about.

Best regards
 
W

Walter Roberson

-I * log( sqrt(1-x*x) + I * x)
where I is the usual complex root of -1.


XXXXXX.working.in.my.blood said:
where did u find that???


As I hinted in the discussion of the Taylor expansion, I used
the symbolic mathematics package Maple

[fixed width font required for below]

maple> convert(arcsin(x),expln);
2 1/2
-I ln((1 - x ) + I x)


If you do heavy-duty symbolic manipulation, then you should
consider Maple. If you do not need the manipulation engine to be
as strong as possible, but you need a lot of programmability, then
you should consider Mathematica. In either case, other newsgroups
are more appropriate for discussions of their relative properties
(e.g., sci.math.symbolic comp.soft-sys.math.mathematica
comp.soft-sys.math.maple )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,459
Latest member
Vida00R129

Latest Threads

Top