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

Method ln

__test__/theorem.js:1948–1960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1946 return true
1947 }
1948 ln() {
1949 const a = this.a
1950 const b = this.b
1951
1952 const asbs = a.times(a).plus(b.times(b))
1953 const log = this.t.ln(asbs)
1954 const half = log.div(2)
1955
1956 this.b = this.arg()
1957 this.a = half
1958
1959 return this
1960 }
1961 log(base) {
1962 if (!base) {
1963 throw "[TheoremJS] Log: wrong base"

Callers

nothing calls this directly

Calls 5

argMethod · 0.95
plusMethod · 0.80
timesMethod · 0.80
divMethod · 0.80
lnMethod · 0.45

Tested by

no test coverage detected