complex equation in expr

Josef Rebbe's icon

Hi everybody.

I'm trying to get the Lemniscate of Bernoulli moving in an x/y pictslider.

Can anybody help me to get the following equations into an expr object?

x = a*(the root of 2) * cos(t) / sin(to the power of 2)(t) +1
y = a *(the root of 2) * cos(t) * sin(t) / sin(to the power of 2(t) +1

I just can't get it right somehow.

Thank's and much love,
Josef

Schermafbeelding-2016-12-18-om-20.35.52.png
png
Josef Rebbe's icon

Here are more equations in case the one I posted doesn't work...

Schermafbeelding-2016-12-18-om-21.03.34.png
png
volker böhm's icon
Max Patch
Copy patch and select New From Clipboard in Max.

try this:

Josef Rebbe's icon

Awesome Volker, thank's a lot. I got it working.

Now I'd like to make the lemniscaat movement rotate clockwise or counter clockwise withing the pictslider.
Anybody an idea how I could make that work?

lemniscaat-pictslider.maxpat
Max Patch
Josef Rebbe's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

use cartopol -> add offset->poltocar :

Josef Rebbe's icon

Awesome, thanks!!