本文共 889 字,大约阅读时间需要 2 分钟。
?Objective-C????bisection???????????????Bisection Method??????????????????????????
bisection??????????????????????????????????????f(x)???[a, b]????????f(a)?f(b)??????????????????
?????c = (a + b)/2
??f(c)????
???[a, b]??????????????????????2?????????????
???Objective-C????????????bisection???
#import@interface BisectionMethod : NSObject- (double)solveFunction:(double)x;@end
???????????????????f(x)????????[a, b]?
??????????????a????b???????epsilon?
?????????????????????c???f(c)????????????
???????????????????????c????????
bisection??????????????????
?????????????Objective-C??bisection??????????????????
转载地址:http://gdnfk.baihongyu.com/