Invers sinus function

I would need an invers sinus function but i couldn't find anything about it in lang.Math..Or did i miss something?regards
[143 byte] By [thaldyrona] at [2007-9-29 11:01:45]
# 1
java.lang.Math.asin()The docs are your friends
dpza at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 2
"Inverse sinus" function? What hope do you have of finding a function when you don't know the proper name for it?
duffymoa at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 3

> "Inverse sinus" function? What hope do you have of

> finding a function when you don't know the proper name

> for it?

Be gentle, not everyone is fluent in zee engleesh.

Anyway "sinus" is latin for sine (although the

ending might vary according to case).

TerryMoorea at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 4

I beg to differ, Terry Moore. The sine function wasn't even known in Roman times - math wasn't that far along. I've studied both Latin and math, and there was no word for such a thing in Roman times.

English is one thing, but math is universal. It's the sine function if you know what you're doing in any language.

duffymoa at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 5

sinus is common usage for the general form when talking about the general function, sinusoid is used when talking about the wave shape or graph.

The sine function is the sinus function with unit amplitude and zero phase, cosine that with unit amplitude and phase of pi/2.

Whilst there isn't an inverse sinus function per se, as there as are many sinus functions as there are phases and amplitudes, it's not wrong.

Pete

Pete_Kirkhama at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 6

I've got an engineering background, and I never heard the general function referred to as a sinus function. The general category was trigonometric functions.

When I type "sinus function" into Google, it brings back a lot of medical articles about nose problems. There's a couple of forum notes, like the OP question, where people ask about sinus functions, but there isn't a single mathematical site that describes a unit amplitude sine function as a sinus.

Maybe it's a European thing.

I still say it's incorrect. At best, it's not a term in general usage. - MOD

duffymoa at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 7
Yeah, but "asin"? That doesn't follow any mathematical usage I've ever seen, either. Why isn't it called "arcsin"?
DrClapa at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 8
DrClap, I've often seen arcsin shortened to asin. That's the name of the FORTRAN function, and that goes back to 1957. Sounds like Java and the rest followed suit. - MOD
duffymoa at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 9

> I beg to differ, Terry Moore. The sine function

> wasn't even known in Roman times - math wasn't that

> far along. I've studied both Latin and math, and

> there was no word for such a thing in Roman times.

Nor did the latin species names exist in roman times.

Perhaps the Romans didn't have a name for the sine,

or perhaps they did. I do believe that the ancient

Greeks had trigonometrical tables in pre-roman times.

But perhaps only tables of chords (twice the sine of

half the angle).

My main point, though, (which was posibly not

expressed as clearly as it might have been) was that

to say "The correct word is 'sine'" would be

informative, to add "how can you expect to use a

function if you don't know its proper name?" is a

'put down' and quite unecessary.

TerryMoorea at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 10

Google tells me that you're correct about the Greeks having chords of circles, but the first appearance of the sine of an angle is credited to Hindus around 500 A.D.

Put down? No. Merely noting a fact. If you're looking for elliptic integrals, but don't know the name, you'll have a hard time finding those, too. - MOD

duffymoa at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 11

> Maybe it's a European thing.

>

> I still say it's incorrect. At best, it's not a term

> in general usage. - MOD

Not that it matters much but 'sine' is the English tranlation of the well known sine function. If I'm not mistaken, the Spanish translation is 'seno'. At least in Dutch, German, French, Serb and Croatian, the correct translation for this function is 'sinus'. The latter is a direct derivative of the Medieval Latin word 'sinus', meaning 'curve'.

But I agree, 'sinus' is not the correct English translation for this type of function.

kind regards,

Jos

JosHorsmeiera at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 12

> Google tells me that you're correct about the Greeks

> having chords of circles, but the first appearance of

> the sine of an angle is credited to Hindus around 500

> A.D.

Yes, I've since looked up Britannica. Hipparchus, 2nd

century BC had 12 books of tables of chords--lost but

we have it on the authority of writers 500 years later

who called Hipparchus the father of trigonometry.

Ptolomy of Alexandria also had tables in 2nd century AD.

Remember that long after Latin ceased to be the

vernacular of the common people (if that's not a

tautology), it was the language of science until at

least the 18th century. When the Arabic books on

mathematics were translated into Latin in the 12th

century, the word for sine was mistranslated as sinus.

There's a lot more interesting stuff in the article

Trigonometry: history in Britannica.

> Put down? No. Merely noting a fact. If you're

> looking for elliptic integrals, but don't know the

> name, you'll have a hard time finding those, too. -

> MOD

OK.

TerryMoorea at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 13
AFAIK sinus is a well-defined function and asin (arcus sinus) is its inverse. Y./! ) / ! ) / !)/ a !)-!)Xgiven the angle "a", sin(a) is the distance XY where the )'s represent an arc of the circle with the radius of 1.
BIJ001a at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 14

> Yeah, but "asin"? That doesn't follow any mathematical

> usage I've ever seen, either. Why isn't it called

> "arcsin"?

There's a lot of inconsistency about, we just have to

get used to it. The inverse of a function is often

denoted by superscript -1. That's fine but not easy

to use in computer languages. Unfortunately, sin^2

ought, for consistency's sake, to be the sine of a

sine, but it's never used like that.

Then there's the horrible arcsinh seen in some languages

and texts.

The angle corresponding to a sine can be related to the

arc length of a circle, hence the name arcsine, but the

inverse hyperbolic sine is not an arc length but an area,

hence arsinh. asin and asinh are convenient abbreviations

where 'a' can be read as 'arc' or 'ar' as needed. I like

it. atan2 is also horrible, but a necessary evil in a

floating point world with the possibility of overflow.

TerryMoorea at 2007-7-15 0:25:46 > top of Java-index,Other Topics,Algorithms...
# 15

Thank you, TerryMoore and others. This has been educational.

I disagree about one thing you wrote here, Terry. sin^2 makes me think "sine-squared" before "sine of sine". (I can't think of a time offhand when I've used sine of sine, but sine-squared is common for Fourier series.)

Your point about sin^-1 meaning inverse sine matches what I've observed in most math texts. That's the way I write it.

asin is for the sake of computers.

Excellent discussion. - MOD

duffymoa at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 16

> I disagree about one thing you wrote here, Terry.

> sin^2 makes me think "sine-squared" before "sine of

> sine". (I can't think of a time offhand when I've

> used sine of sine, but sine-squared is common for

> Fourier series.)

The usual meaning of "f squared of x" when you're talking about functions in general is "f(f(x))" and not "f(x) squared", but the trig functions are an exception to this.

DrClapa at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 17
sin (x) = sinus of the arc "x"asin (y) = arcus sinus (y) = the arc of the sinus "y"
BIJ001a at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 18

> > I disagree about one thing you wrote here, Terry.

> > sin^2 makes me think "sine-squared" before "sine of

> > sine". (I can't think of a time offhand when I've

> > used sine of sine, but sine-squared is common for

> > Fourier series.)

>

> The usual meaning of "f squared of x" when you're

> talking about functions in general is "f(f(x))" and

> not "f(x) squared", but the trig functions are an

> exception to this.

Hm ... I guess things differ all over the globe; when I studied math, the usual notation was (I'm sprinkling in some parentheses for clarity)

sin^2(x) --> sin(sin(x))

sin(x^2) --> sin(x*x)

sin(x)^2 --> sin(x)*sin(x)

But then again a (hopefully small) section in the foreword, mentioning the notation used, does wonders most of the time.

kind regards,

Jos

JosHorsmeiera at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 19

> sin^2(x) --> sin(sin(x))

> sin(x^2) --> sin(x*x)

> sin(x)^2 --> sin(x)*sin(x)

hm, when i was at school

sin^2(x) --> sin(x)*sin(x)

but

f^2(x) --> f(f(x))

http://mathforum.org/library/drmath/view/63185.html

http://web.pdx.edu/~marky/Assignment7/sinsqx.htm

asjf

asjfa at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 20

> > sin^2(x) --> sin(sin(x))

> > sin(x^2) --> sin(x*x)

> > sin(x)^2 --> sin(x)*sin(x)

>

> hm, when i was at school

> sin^2(x) --> sin(x)*sin(x)

but

> f^2(x) --> f(f(x))

It's a matter of convenience. Powers of trig functions (more

precisely, powers of the result of applying trig functions)

occur so frequently that it's sensible to have a short notation

for it. sin^2 x = (sin(x))^2 is natural although inconsistent

with other uses of superscripts applied to functions.

I was just pointing out the inconsistency, not condemming it.

TerryMoorea at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 21

> I beg to differ, Terry Moore. The sine function

> wasn't even known in Roman times - math wasn't that

> far along. I've studied both Latin and math, and

> there was no word for such a thing in Roman times.

>

>

> English is one thing, but math is universal. It's the

> sine function if you know what you're doing in any

> language.

Newton wrote PRINCIPIA MATHEMATICA in Latin even when he was English.

Here's the Latin version in PDF.

http://www.maths.tcd.ie/pub/HistMath/People/Newton/Principia/Bk1Sect1/PrL1S1.pdf

Other versions:

http://www.maths.tcd.ie/pub/HistMath/People/Newton/Principia/Bk1Sect1/

So, never think things can't be named in latin becuase they are post roman empire. And, yes, he uses sinus.

fedetxfa at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...
# 22
Thank you, fedetxf. You've educated me. - MOD
duffymoa at 2007-7-19 5:46:27 > top of Java-index,Other Topics,Algorithms...