forked from pyrex/chameleonic
Golf sgn0
This commit is contained in:
parent
94e4aea20b
commit
ed25ef0f94
@ -93,8 +93,7 @@ function _apply(x,ts,a)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function sgn0(x)
|
function sgn0(x)
|
||||||
if (x==0) return x
|
return x!=0 and sgn(x) or 0
|
||||||
return sgn(x)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function _mnmx(x,y)
|
function _mnmx(x,y)
|
||||||
|
Loading…
Reference in New Issue
Block a user