diff --git a/docs/expressions/syntax.md b/docs/expressions/syntax.md index 722f8084ae..a21f1d62c2 100644 --- a/docs/expressions/syntax.md +++ b/docs/expressions/syntax.md @@ -472,19 +472,6 @@ parser.evaluate('i * i') // Number, -1 parser.evaluate('sqrt(-4)') // Complex, 2i ``` -Math.js does not automatically convert complex numbers with an imaginary part -of zero to numbers. They can be converted to a number using the function -`number`. - -```js -// convert a complex number to a number -const parser = math.parser() -parser.evaluate('a = 2 + 3i') // Complex, 2 + 3i -parser.evaluate('b = a - 3i') // Complex, 2 + 0i -parser.evaluate('number(b)') // Number, 2 -parser.evaluate('number(a)') // Error: unexpected type of argument -``` - ### Units