Closed TheFausap closed 1 year ago
in k you cannot define a matrix as (1 0;0 t)
this notation (to form a vector) is only allowed for numbers.
0 t
means index 0 with t (same as 0@t or 0[t]). you have to write (0;t). if they are the same type, they are collapsed to a unitype vector, otherwise they remain a general list.
thanks! with ; it works as intended :)
Hello, I am trying to define a phase matrix, dependent by a parameter. I defined this function:
P:{t:angle[1;x];(1 0;0 t)}
but if I run P 45, I receive this error:
even if I do not use the temp var, by defining:
P:{(1 0;0 angle[1;x])}
I receive another error:
Do you have any idea why that is?
thanks, Fausto