MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / exp

Method exp

__test__/theorem.js:1929–1944  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1927 return this.a.eq(complex.a) && this.b.eq(complex.b)
1928 }
1929 exp() {
1930 const a = this.a
1931 const b = this.b
1932
1933 const ea = this.t.exp(a)
1934 const cos = this.t.cos(b)
1935 const sin = this.t.sin(b)
1936
1937 const re = ea.times(cos)
1938 const im = ea.times(sin)
1939
1940 this.a = re
1941 this.b = im
1942
1943 return this
1944 }
1945 get isComplex() {
1946 return true
1947 }

Callers

nothing calls this directly

Calls 4

cosMethod · 0.80
sinMethod · 0.80
timesMethod · 0.80
expMethod · 0.45

Tested by

no test coverage detected