I am looking for the tut of math function in detail
Where can I find it?
Thx in advanced
Keat
I am looking for the tut of math function in detail
Where can I find it?
Thx in advanced
Keat
What things are you wanting to do. Your question is pretty open ended and a bit broad for any one to answer.
Rob
Hi Rob
I am looking for the using of the math in corona api/
Is there any tut that you know?
PK
What math? Adding numbers? Calculating cosines? Doing Mandelbrot Fractals? How do I use math is too broad of a question to ask. Give us some examples of what you are wanting to do.
Rob
You mean, this?
http://lua-users.org/wiki/MathLibraryTutorial
First hit in Google search for “lua math”…
Hi Dave and Rob
There are a lot of math * in corona api,
As it is listed below:
Functions
math.abs()
math.acos()
math.asin()
math.atan()
math.atan2()
math.ceil()
math.cos()
math.cosh()
math.deg()
math.exp()
math.floor()
math.fmod()
math.frexp()
math.ldexp()
math.log()
math.log10()
math.max()
math.min()
math.modf()
math.pow()
math.rad()
math.random()
math.randomseed()
math.round()
math.sin()
math.sinh()
math.sqrt()
math.tan()
math.tanh()
what are the purpose of using these math?
it just shows a shortly explanation, for me i would like to know in detail for the function of math above.
I do hope that you can show me,
thanks
Well each of them does something different. The functions should be all documented as to what they do.
For instance, math.abs() calculates the absolute value of a number. math.abs(-10) will return 10.
acos, asin,sin, sinh, tan, tanh, atan, atan2, cos, etc. perform trig functions. math.round() rounds a fractional number up or down. These are very similar to their equivalent function in other languages.
Rob
Hi Ron
thanks for your fast respond
how can i find it in more detail for coding in using those math?
PK
What is it you want to do?
Normally people don’t say “I want to do a project using cosines.” Normally it’s “I need to know what angle to fire my rocket at” and that leads you to the math you need. We really can’t suggest projects for you. You need to have a goal before you start.
Rob
If you’re looking for “what is a sine?” “what is a cosine?” … you might try Wolfram’s Mathworld, http://mathworld.wolfram.com/, and search/click-around on that site.
> it just shows a shortly explanation, for me i would like to know in detail for the function of math above.
Unless you’re asking what is the numerical algorithm used to calculate those values? My guess is Corona, or Lua, calls some standard library … which might use some combination of native CPU instructions, look-up tables, interpolation, and iterative refinement. That’s a much deeper topic – and pretty far out-of-scope for the Corona forums – whole books are written about those kinds of things.
Yeah, this sounds like you need more background in math itself, not just the math api for Lua.
Another thing you could do is, using the short description of the functions which interest you, right some sample Lua code to see how they work.
Really, the only way to learn a language or framework is to experiment with it.
What things are you wanting to do. Your question is pretty open ended and a bit broad for any one to answer.
Rob
Hi Rob
I am looking for the using of the math in corona api/
Is there any tut that you know?
PK
What math? Adding numbers? Calculating cosines? Doing Mandelbrot Fractals? How do I use math is too broad of a question to ask. Give us some examples of what you are wanting to do.
Rob
You mean, this?
http://lua-users.org/wiki/MathLibraryTutorial
First hit in Google search for “lua math”…
Hi Dave and Rob
There are a lot of math * in corona api,
As it is listed below:
Functions
math.abs()
math.acos()
math.asin()
math.atan()
math.atan2()
math.ceil()
math.cos()
math.cosh()
math.deg()
math.exp()
math.floor()
math.fmod()
math.frexp()
math.ldexp()
math.log()
math.log10()
math.max()
math.min()
math.modf()
math.pow()
math.rad()
math.random()
math.randomseed()
math.round()
math.sin()
math.sinh()
math.sqrt()
math.tan()
math.tanh()
what are the purpose of using these math?
it just shows a shortly explanation, for me i would like to know in detail for the function of math above.
I do hope that you can show me,
thanks
Well each of them does something different. The functions should be all documented as to what they do.
For instance, math.abs() calculates the absolute value of a number. math.abs(-10) will return 10.
acos, asin,sin, sinh, tan, tanh, atan, atan2, cos, etc. perform trig functions. math.round() rounds a fractional number up or down. These are very similar to their equivalent function in other languages.
Rob
Hi Ron
thanks for your fast respond
how can i find it in more detail for coding in using those math?
PK
What is it you want to do?
Normally people don’t say “I want to do a project using cosines.” Normally it’s “I need to know what angle to fire my rocket at” and that leads you to the math you need. We really can’t suggest projects for you. You need to have a goal before you start.
Rob
If you’re looking for “what is a sine?” “what is a cosine?” … you might try Wolfram’s Mathworld, http://mathworld.wolfram.com/, and search/click-around on that site.
> it just shows a shortly explanation, for me i would like to know in detail for the function of math above.
Unless you’re asking what is the numerical algorithm used to calculate those values? My guess is Corona, or Lua, calls some standard library … which might use some combination of native CPU instructions, look-up tables, interpolation, and iterative refinement. That’s a much deeper topic – and pretty far out-of-scope for the Corona forums – whole books are written about those kinds of things.