mirror of
https://github.com/Experience-Monks/math-as-code.git
synced 2026-01-09 14:08:04 -05:00
Merge pull request #41 from chocolateboy/fix-complex-number-typo
fix complex-number typo
This commit is contained in:
@@ -155,7 +155,7 @@ var a = math.complex(3, -1)
|
|||||||
//=> { re: 3, im: -1 }
|
//=> { re: 3, im: -1 }
|
||||||
|
|
||||||
var b = math.sqrt(-1)
|
var b = math.sqrt(-1)
|
||||||
//=> { re: 0, im: -1 }
|
//=> { re: 0, im: 1 }
|
||||||
|
|
||||||
console.log(math.multiply(a, b).toString())
|
console.log(math.multiply(a, b).toString())
|
||||||
//=> '1 + 3i'
|
//=> '1 + 3i'
|
||||||
|
|||||||
Reference in New Issue
Block a user