Dear group,

I cannot figure out why the calculations inside
 [expr (x*cos(theta))-(y*sin(theta));
(x*sin(theta))+(y*cos(theta))] gives me wrong results.

The above mentioned formula for rotation is correct. I initialize the values through [value] object before preforming computation. The initial values are: x=1, y=0, theta=1/2pi. I expect  the new x and new y to be (0,1) respectively after the rotation. But, for some reason, I get (-1,1). I checked the help files for [value] and [expr] and it looks like I am doing everything right. 
Anyone have an idea where's the mistake?
Thank you!
Hrvoje Radnic

https://www.instagram.com/singlecycled/

https://pdvrecords.bandcamp.com/album/umovi-protiv-valova
https://soundcloud.com/sumovi-protiv-valova
00385(0)915225162