[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [femm] Re: [Still Error ocurred.. :-( ]



--- khmr8425 <khmr8425@xxxxxxxxxxx> a écrit : 
---------------------------------
--- In femm@xxxxxxxxxxxxxxx, Tsarafidy RAMINOSOA
<tsarafidy@xxxx> 
wrote:
> You should write :
> ...
> point_x = 50 * cos(delta)
> point_y = 50 * sin(delta)
> 
> addnode(point_x, point_y)
> ...
> 
> where delta is in degree.
> 
> Tsarafidy.
> 
>
___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
en fran?is !
> Yahoo! Mail : http://fr.mail.yahoo.com

Thanks for your reply.

I have done this, but there is still an error. Message
box is ...

error : attempt to call global 'math_cos'(a nil
value)
stack traceback
1 : main of file 'C:\work\move_01.lua' at line 21

Do you know the reason why?


===================================================
Hello,

Look at the line 21 of the file "move_01.lua",
May be there's still a "math_cos" function.

In my knowledge, femm use 4.0 version of lua. 
In lua 4.0 sine functions are called "cos()" and
"sin()" but not "math.cos()" or "math.sin()" like in
lua 5.0.

I attached in PDF a lua 4.0 manual. You can see more
about trigonometric functions at page 39 (section
6.3).

regards

Tsarafidy

[Moderator's note: Please refer to http://www.lua.org/ftp/refman-4.0.pdf for the Lua 4.0 manual]













Yahoo! Groups Sponsor ADVERTISEMENT

Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service. 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com