Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/josdejong/mathjs
/ complex_numbers.js
File
complex_numbers.js
examples/complex_numbers.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// complex numbers
2
import
{ complex, add, multiply, sin, sqrt, pi, equal, sort, format } from
'../lib/esm/index.js'
3
4
// create a complex number with a numeric real and complex part
Callers
nothing calls this directly
Calls
8
add
Function · 0.90
multiply
Function · 0.90
format
Function · 0.90
print
Function · 0.70
log
Method · 0.65
clone
Method · 0.65
abs
Method · 0.65
arg
Method · 0.65
Tested by
no test coverage detected