Skip to content

Commit 5da2bab

Browse files
committed
adding pi number as literal
1 parent 4888380 commit 5da2bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/MathOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait MathOps extends Base {
2828
def abs[A:Manifest:Numeric](x: Rep[A])(implicit pos: SourceContext) = math_abs(x)
2929
def max[A:Manifest:Numeric](x: Rep[A], y: Rep[A])(implicit pos: SourceContext) = math_max(x,y)
3030
def min[A:Manifest:Numeric](x: Rep[A], y: Rep[A])(implicit pos: SourceContext) = math_min(x,y)
31-
def Pi(implicit pos: SourceContext) = math_pi
31+
def Pi(implicit pos: SourceContext) = 3.141592653589793238462643383279502884197169
3232
def E(implicit pos: SourceContext) = math_e
3333
}
3434

0 commit comments

Comments
 (0)