zasdfgbnm 发表于 2010-3-31 13:28:33

ispositive(x)和isnotneagtive(x)精简

ispositive(x) = 0.5(s_1(x)+1)
isnotnegative(x) = 0.5(s_2(x)+1)
此次精简大大节约了代码空间
s_1(x)和s_2(x)的定义见
http://www.cncalc.org/thread-2953-1-1.html

zasdfgbnm 发表于 2010-4-2 07:56:44

2# shyc2001
hcz做了进一步精简
页: [1]
查看完整版本: ispositive(x)和isnotneagtive(x)精简