We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83816af commit 6aafbbeCopy full SHA for 6aafbbe
src/Symengine.hs
@@ -212,7 +212,7 @@ instance Floating BasicSym where
212
pi = Symengine.pi
213
exp x = e ** x
214
log = undefined
215
- sqrt x = x ** 0.5
+ sqrt x = x ** 1/2
216
(**) = basic_pow
217
logBase = undefined
218
sin = basic_unaryop basic_sin_ffi
test/Spec.hs
@@ -42,9 +42,9 @@ unitTests = testGroup "Unit tests"
42
cos zero @?= one
43
44
sin (pi / 6) @?= 1 / 2
45
- sin (pi / 3) @?= 3 ** 0.5 / 2
+ sin (pi / 3) @?= (3 ** (1/2)) / 2
46
47
- cos (pi / 6) @?= 3 ** 0.5 / 2
+ cos (pi / 6) @?= (3 ** (1/2)) / 2
48
cos (pi / 3) @?= 1 / 2
49
50
sin pi_over_2 @?= one
0 commit comments