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

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

- To: femm@yahoogroups.com
- Subject: Re: [femm] Re: [Still Error ocurred.. :-( ]
- From: Tsarafidy RAMINOSOA <tsarafidy@yahoo.fr>
- Date: Tue, 17 Jun 2003 11:32:03 +0200 (CEST)
- In-reply-to: <bcm0fu+have@eGroups.com>

    --- khmr8425 <khmr8425@yahoo.co.kr> a écrit :
    ---------------------------------
    --- In femm@yahoogroups.com, Tsarafidy RAMINOSOA
    <tsarafidy@y...>
    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

- References:
  - Re: [Still Error ocurred.. :-( ]
    - From: "khmr8425" <khmr8425@yahoo.co.kr>

- Prev by Date: Re: [femm] transient analysis
- Next by Date: Re: [femm] [How can I use "sine function" in lua script?]
- Previous by thread: Re: [Still Error ocurred.. :-( ]
- Next by thread: Re: [femm] [How can I use "sine function" in lua script?]
- Index(es):
  - Date
  - Thread