Domanda

I just need a function that gives me the inverted sine. I've tried using

math.sin(x)^-1

but that doesn't work... How do you find the inverted sine of a number in lua?

È stato utile?

Soluzione

Do you mean arcsin ?

math.asin(x)

Altri suggerimenti

I odn't know about Lua, but in most languages there's a function named asin() or arcsin().

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top