Using Fixpoint to Solve Mathmatic Equation ( 无限float运算的扩展 stream style)
来源:互联网 发布:淘宝网店一颗心 编辑:程序博客网 时间:2024/05/22 12:32
(defun mycons (p q s)
(lambda (x) (funcall x p q s) )
)
(defun mycar (value)
(funcall value (lambda (x y z) x) )
)
(defun mycadr (value)
(funcall value (lambda (x y z) y) )
)
(defun mycddr (value)
(funcall value (lambda (x y z) z) )
)
(defun dec (n )
(mycons n (/ n 2) (dec (/ n 4) ) )
)
(defun calc (n sum)
(if (< (abs (- (mycar n) (mycadr n) ) ) (/ 1 10000000))
sum
(progn
(print sum)
(calc (mycddr n) (+ sum (mycar n) (mycadr n) ) )
)
)
)
(calc (dec 1) 0)
(calc (dec 2) 0)
(calc (dec 3) 0)
- Using Fixpoint to Solve Mathmatic Equation ( 无限float运算的扩展 stream style)
- Using Fixpoint to Solve Mathmatic Equation ( 无限float运算的扩展 fixpoint style)
- Using Fixpoint to Solve Mathmatic Equation ( x= sin x fixpoint style)
- Using Fixpoint to Solve Mathmatic Equation ( x= sin x)
- 无限float运算
- Solve equation
- Solve equation
- Solve equation
- Solve equation
- Solve equation
- fixpoint
- FZOJ2102:Solve equation
- FZU 2102 Solve equation
- FZU 2102 Solve equation
- FZU - 2102 Solve equation
- FZU-2102-Solve equation
- FZU 2102Solve equation
- 640. Solve the Equation
- Android Launcher2分析之(一)----Res分析
- 使用GhostDoc为代码生成注释文档
- iPhone How-to:播放gif动画
- Sandcastle初探——官方版的NDoc
- iPhone How-to:给导航栏贴图
- Using Fixpoint to Solve Mathmatic Equation ( 无限float运算的扩展 stream style)
- 使用MyGeneration生成NHibernate映射文件
- Cannot open database "db1" requested by the login. The login failed.
- 数组循环移位
- 一些PHP Coding Tips
- 十五: TranslateMessage(&msg) 函数 和DispatchMessage(&msg)函数
- 编码的问题--编码有三种(页面编码,文件格式的编码,后台处理所使用的编码)
- cat指令详解
- Android启动init.c