I am having trouble creating intrinsics in MAGMA. For example, the following code in MAGMA:
intrinsic Square(x::FldComElt) -> FldComElt
{Returns the square of x (x^2).}
return x^2;
end intrinsic;
produced the following error:
User error: Illegal intrinsic
I don't understand the error as to why this is an illegal intrinsic. Can someone help me to create intrinsics in MAGMA?
For example, the following code in MAGMA:
intrinsic Square(x::FldComElt) -> FldComElt
{Returns the square of x (x^2).}
return x^2;
end intrinsic;
Square(12);
produced the following errors in output:
User error: Illegal intrinsic
User error: Identifier 'Square' has not been declared or assigned
rather than the following output:
144
Can this error be fixed?