File size: 255 Bytes
5fcecfa
cfca8a4
 
5fcecfa
a3a2513
1
2
3
4
5
6
# Define allowed operators. Any julia operator can also be used.
plus(x::Float32, y::Float32)::Float32 = x+y
mult(x::Float32, y::Float32)::Float32 = x*y;
pow(x::Float32, y::Float32)::Float32 = sign(x)*abs(x)^y;
div(x::Float32, y::Float32)::Float32 = x/y;