MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]函数问题 (https://www.labfans.com/bbs/showthread.php?t=3465)

lailai1115 2008-06-05 11:37

[求助]函数问题
 
我编写了一个二分法求根的函数bisect.m,直接调用求解方程f(x)=2的根,调用格式为bisect(inline('f(x)-2'),a,b,0.0001),其中a,b是求根区域的上下界,0.0001是根的精度。我的问题是,现在想求解方程f(x)=h的根,求解不同的h值对应方程的根,这个怎么做?谢谢!

mathjiang 2008-06-06 10:31

用input通过键盘输入h不就行了吗


所有时间均为北京时间。现在的时间是 11:23

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.