Skip to content

Commit

Permalink
Rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Mar 13, 2019
1 parent 715e2fb commit e24e449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baslib/math.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ func Atn(x float64) float64 {
return math.Atan(x)
}

func Sqrt(v float64) float64 {
func Sqr(v float64) float64 {
return math.Sqrt(v)
}
2 changes: 1 addition & 1 deletion node/exp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ func (e *NodeExpSqr) String() string {
// Exp returns value
func (e *NodeExpSqr) Exp(options *BuildOptions) string {
//return "math.Sqrt(" + forceFloat(options, e.Value) + ")"
return "baslib.Sqrt(" + forceFloat(options, e.Value) + ")"
return "baslib.Sqr(" + forceFloat(options, e.Value) + ")"
}

// FindUsedVars finds used vars
Expand Down

0 comments on commit e24e449

Please sign in to comment.