# Algorithm

**URL:** <http://forum.vvvv.org/t/algorithm/2114>\
**Category:** general\
**Created:** [July 18, 2007, 4:47pm UTC](http://forum.vvvv.org/t/algorithm/2114 "2007-07-18T16:47:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![taso](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/t/999999/32.png) [@taso](http://forum.vvvv.org/u/taso)\
**Post date:** [July 18, 2007, 4:47pm UTC](http://forum.vvvv.org/t/algorithm/2114/1 "2007-07-18T16:47:59Z")

</div>

hello! how can i interpret a formula like this:(x, y) = (rcos(q + r), rsin(q + r)) in vvvv?

---

<div class="post-metadata">

**Author:** ![gregsn](http://forum.vvvv.org/user_avatar/forum.vvvv.org/gregsn/32/6_2.png) [@gregsn](http://forum.vvvv.org/u/gregsn)\
**Post date:** [July 18, 2007, 5:24pm UTC](http://forum.vvvv.org/t/algorithm/2114/2 "2007-07-18T17:24:06Z")

</div>

hi taso!  
what do you mean by rsin, rcos?  
is it the arcsin, arccos or just sin, cos?

in the later case you will just need a circularspread with center at 0,0 and width,height=2. you would then input q+r as the phase.

if rsin and rcos are meant to be arcsin, arccos then you would use two expression nodes.  
for x: arccos(a)  
for y: arcsin(a)  
and input q+r into pin a of the expression nodes

---

<div class="post-metadata">

**Author:** ![taso](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/t/999999/32.png) [@taso](http://forum.vvvv.org/u/taso)\
**Post date:** [July 18, 2007, 6:49pm UTC](http://forum.vvvv.org/t/algorithm/2114/3 "2007-07-18T18:49:39Z")

</div>

sorry r = radical of (x2 + y2), this must be form a swirl?  
is there a sin or cos in vvvv?

---

<div class="post-metadata">

**Author:** ![taso](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/t/999999/32.png) [@taso](http://forum.vvvv.org/u/taso)\
**Post date:** [July 18, 2007, 10:15pm UTC](http://forum.vvvv.org/t/algorithm/2114/4 "2007-07-18T22:15:21Z")

</div>

ok ! i found it. it was the phase of circular spread.  
also i read your page wave simulation, now evrething is clear!  
thanks gregsn!

---

<div class="post-metadata">

**Author:** ![taso](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/t/999999/32.png) [@taso](http://forum.vvvv.org/u/taso)\
**Post date:** [July 19, 2007, 8:10pm UTC](http://forum.vvvv.org/t/algorithm/2114/5 "2007-07-19T20:10:58Z")

</div>

also found the node expr(value) !  
i like vvvv!

---

<div class="post-metadata">

**Author:** ![tonfilm](http://forum.vvvv.org/user_avatar/forum.vvvv.org/tonfilm/32/406_2.png) [@tonfilm](http://forum.vvvv.org/u/tonfilm)\
**Post date:** [July 19, 2007, 9:18pm UTC](http://forum.vvvv.org/t/algorithm/2114/6 "2007-07-19T21:18:06Z")

</div>

also have a look at the node category ‘Complex’ and open some help patches. most 2d problems can be solved with complex numbers, wich are basically 2d vectors.
