c# method Math.IEEERemainder(x,y) equivalent in matlab? -
A method exists in matlab equal to C # method Math.IEEERemainder .
Information about this method can be found here:
According to the IEEERemainder specifications:
should be 3/2-1 Although the Matlab method returns mod (3,2) return 1 and rim (3,2) also 1.
The correct mathematical function will be xy * round (x / y) . This expression and monastery The only difference between IEEERemainder is when the value of x / y is fine between two argers. In that case, the round (x / y) is far from zero, while the writing function also contains Math.IEEERemainder round integer.
The function may look like this:
out of function = IEEERemainder (x, y) xy * Round (x / y) end
Comments
Post a Comment