找回密码
 注册
Simdroid-非首页
查看: 78|回复: 4

如何解带gamma函数的方程

[复制链接]
发表于 2011-4-10 14:49:36 | 显示全部楼层 |阅读模式 来自 大连理工大学
gamma(1.5)=0.8862;
为何x= solve('gamma(x)=0.8862')

x =

-1.6358631006035320454282781618422-.51160467566396492912690016898762*i
 楼主| 发表于 2011-4-10 15:52:30 | 显示全部楼层 来自 大连理工大学
Simdroid开发平台
1# liusing
这样可以,但是不知道为什么?
options=optimset('Display','iter','TolFun',1e-10);   % Option to display output
mef=1.5;
x0=2;
x=fsolve(@(x) gamma(1+2./x)/((gamma(1+1./x))^2)-(2.*gamma(1+2./mef)/((gamma(1+1./mef))^2)-1.),x0,options)
回复 不支持

使用道具 举报

发表于 2011-4-11 09:09:01 | 显示全部楼层 来自 四川成都
请问在x=fsolve(@(x) gamma(1+2./x)/((gamma(1+1./x))^2)-(2.*gamma(1+2./mef)/((gamma(1+1./mef))^2)-1.),x0,options)中,(@(x) 是啥意思啊?有啥用啊
回复 不支持

使用道具 举报

发表于 2011-4-11 09:09:27 | 显示全部楼层 来自 北京海淀
'gamma(x)=0.8862'应该有两个实数解吧:
x: 1.42453071908682

x: 1.49915829364734
回复 不支持

使用道具 举报

发表于 2011-4-11 13:18:03 | 显示全部楼层 来自 河北廊坊
3# 千亿星辰
fsolve的第一个输入参数,是函数的句柄
@是用过构造匿名函数的
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-4 21:29 , Processed in 0.037953 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表