473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

sine inverse of something

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!

Nov 15 '05 #1
9 2777
"Water Cooler v2" <wt*****@yahoo.com> wrote:
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
--
Irrwahn Grausewitz (ir*******@freenet.de)
welcome to clc : http://www.ungerhu.com/jxh/clc.welcome.txt
clc faq-list : http://www.faqs.org/faqs/C-faq/faq/
clc frequent answers: http://benpfaff.org/writings/clc.
Nov 15 '05 #2
ajm

Water Cooler v2 schrieb:
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.

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

Nov 15 '05 #4
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.

Nov 15 '05 #5
"ajm" <a_*******@yahoo.co.uk> writes:
Water Cooler v2 schrieb:
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 ?


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

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #6
In article <11**********************@g43g2000cwa.googlegroups .com>,
Water Cooler v2 <wt*****@yahoo.com> wrote:
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.
--
Ceci, ce n'est pas une idée.
Nov 15 '05 #7
where did u find that???
bharath

Nov 15 '05 #8
"XXXXXX.working.in.my.blood" <bh********@gmail.com> wrote:
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
--
Irrwahn Grausewitz (ir*******@freenet.de)
welcome to clc : http://www.ungerhu.com/jxh/clc.welcome.txt
clc faq-list : http://www.faqs.org/faqs/C-faq/faq/
clc frequent answers: http://benpfaff.org/writings/clc.
Nov 15 '05 #9
In article <11**********************@g43g2000cwa.googlegroups .com>,
Apparently in response to my posting:
Water Cooler v2 <wt*****@yahoo.com> wrote:
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.

XXXXXX.working.in.my.blood <bh********@gmail.com> wrote:
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 )
--
"This was a Golden Age, a time of high adventure, rich living and
hard dying... but nobody thought so." -- Alfred Bester, TSMD
Nov 15 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Xanax | last post by:
Hi all, I need to produce a sine wave and use the WaveOut APi to sound it on my sound card. I also need to compute Fast Fourier Transform to modify the Sine wave. Any ideas on where to start or...
143
by: suri | last post by:
Hello I downloaded glibc and tried looking for the code that implements the sine function i couldnt find the file. i went to the math directory and found math.h.. i guess that needs to be...
0
by: Pallav | last post by:
i'm trying to build a lookup sine table to run some code in an embedded processor without floating point unit. the table is 256 values for 360 degrees. my code is below. the fixed point base is...
2
by: Dan | last post by:
* 32 * * .5 * X * *********** I have a triangle with a Hypotenuse of 32 and height of .5. I am trying to determine what angle X is. On a calculator I take .5/32 = .015625...
5
by: MathNewbie | last post by:
Hi, I'm trying to do get my head around some, probably basic, math calculations. I checked some .net math libs, but the only thing I learn from studying those is humility ;-). Anyway, i have...
4
by: Jonathan Fine | last post by:
Hello As part of the MathTran project I found myself wanting to maintain a bijection between long names and short names. http://www.open.ac.uk/mathtran In other words, I wanted to have two...
5
by: MandaRonnie | last post by:
I have an assignment im working on for my computer science class (c programming). My program compiles right, but doesn't run like its suppose to. Could someone help me? Here is the assignment: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.