Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#4 |
游客
帖子: n/a
|
![]()
先用finverse求出反函数
y1=-(c-log(-(a+b-x)./(a-x)))/d; 程序如下 disp('Please input x'); x=input('x='); a=1.5522; b=2.6908; c=-0.743; d=-0.689; n=length(x); y=a+b./(1+exp(c+d*x)); y1 =-(c-log(-(a+b-x)./(a-x)))/d; y1%显示y1 的值 如此运行,程序提醒你输入数组x的值,便可得到其反函数的值 |
![]() |