Re: Math

new topic     » goto parent     » topic index » view thread      » older message » newer message

Try
y = x + cos( z * pi * x )

Matthew W Lewis
KAPCO


> -----Original Message-----
> From: Euphoria Programming for MS-DOS
> [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of Lewis Townsend
> Sent: Thursday, March 09, 2000 12:51 PM
> To: EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject: Math
>
>
> Hello,
>
> My higher math is a little rusty. Can anyone help me
> out here. I need a formula for a wavy line. example:
> as x increases steadily from 0 to 1 y goes up and down
> z number of times.
>
> ^
> |   _     /
> |  / \   / Z = 2
> Y| /   \_/
> |/
> +----------+->
> 0    X     1
>
> This is slightly Euphoria related. The formula is
> for a raytracing program I am using to generate
> graphics for a game I and others are writing in
> Euphoria. I can't seem do it the longer boolean
> way in POV-Ray because it doesn't seem to like
> things like <,>,=,<=,>= in a numeric expression.
> Maybe I'm doing something wrong. Even so I'd like
> to know how to do it with a formula.
>
> TIA,
> Lewis Townsend
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu