Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSourcePhysics/osp
/ cartesian
Method
cartesian
src/org/opensourcephysics/numerics/Complex.java:97–99 ·
view source on GitHub ↗
Convert polar to Cartesian
()
Source
from the content-addressed store, hash-verified
95
* Convert polar to Cartesian
96
*/
97
public
Complex cartesian() {
98
return
new
Complex(re*StrictMath.cos(im), re*StrictMath.sin(im));
99
}
100
101
/**
102
* Returns the real component of this object
Callers
nothing calls this directly
Calls
2
cos
Method · 0.45
sin
Method · 0.45
Tested by
no test coverage detected