Here is a string that generates a figure eight plucked from
an old o-scope manual.
The equation:
x=sin(b t+c);y=sin t {0,2p} {b:2} {c:p}
The ; separate the parametric equations
The first {} with the comma is the range.
The second and third {} with the colon set variables b and c
p = pi
How would this be plugged into Peters code ?
Ken
mick wrote:
> Great little utility Peter
>
> Took the liberty of abusing it
>
> When I was a kid I remember feeding two signal generators into an
> oscilloscope
>
> So I modified yor code to do that
>
> Add
> #declare coeff2_X = ?; // where ? is any number multiples of coeff_X work
> best
> and add
>
> + sin(2*pi*(dummy+phase_X)*coeff2_X),
>
> to
>
> <sin(2*pi*(dummy+phase_X)*coeff_X)
>
> to get
>
> <sin(2*pi*(dummy+phase_X)*coeff_X) + sin(2*pi*(dummy+phase_X)*coeff2_X),
>
> Gives some amazing patterns
>
> Have Fun
>
> Mick Hazelgrove
Post a reply to this message
|