How to use the cbrt function from mathjs

Find comprehensive JavaScript mathjs.cbrt code examples handpicked from public code repositorys.

33
34
35
36
37
38
39
40
41
42
const numbers = [1, 2, 3, 4, 5]

// arithmetic
math.add(a, b); // add
math.cube(a); // cube
math.cbrt(8); // cube root
math.divide(a, b); // divide
math.exp(8) // exponent (e ** x)
math.log(a) // ln
math.log(a, 2) // log base 2
fork icon0
star icon3
watch icon1

+ 2 other calls in file

26
27
28
29
30
31
32
33
34
	sqrt(a) {
		return sqrt(a)
	}


	cbrt(a) {
		return cbrt(a)
	}
}
fork icon2
star icon0
watch icon0

25
26
27
28
29
30
31
32
33

        sqrt(a) {
                return sqrt(a)
        }

        cbrt(a) {
                return cbrt(a)
        }
}
fork icon1
star icon0
watch icon3