24小时热门版块排行榜    

查看: 1129  |  回复: 5

chaofan1231

银虫 (小有名气)

[求助] matlab解代数方程的问题

哪位大侠帮忙看下这是怎么回事啊?谢谢啊
y=2;
>> subs(solve('y=exp((1/0.0000005461-1/0.000000700)*0.014388/x+ln((x-993.74731)/2869.03078)-5*ln(700/546.1))','x'))
Warning: Explicit solution could not be found.
我把y=2直接代进去的话solve('2=exp((1/0.0000005461-1/0.000000700)*0.014388/x+ln((x-993.74731)/2869.03078)-5*ln(700/546.1))','x')
ans =matrix([[14197.808632879686391435779145547]]),但是我在origin中将这个方程画成曲线的话,y=2时x的两个值分别在1100和1900附近,这是怎么回事啊?
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖置顶 ( 共有1个 )

csgt0

荣誉版主 (著名写手)

彩色挂图

【答案】应助回帖

★ ★ ★ ★ ★
chaofan1231: 金币+5, ★★★★★最佳答案 2012-05-15 14:53:43
chaofan1231: 回帖置顶 2012-05-15 14:54:44
>> evalin(symengine, 'numeric::solve(2=exp((1/0.0000005461-1/0.000000700)*0.014388/x+ln((x-993.74731)/2869.03078)-5*ln(700/546.1)), x = 1000..2000)')

ans =

1092.7957902606343947864233870012

>> evalin(symengine, 'numeric::solve(2=exp((1/0.0000005461-1/0.000000700)*0.014388/x+ln((x-993.74731)/2869.03078)-5*ln(700/546.1)), x = 1500..2000)')

ans =

1826.2296709384982930177909403237

Solve the following equation:

syms x;
solve('sin(x) = x^2 - 1')

The symbolic solver cannot find an exact symbolic solution for this equation, and therefore, it calls the numeric solver. Because the equation is not polynomial, an attempt to find all possible solutions can take a long time. The numeric solver does not try to find all numeric solutions for this equation. Instead, it returns only the first solution that it finds:

ans =
-0.63673265080528201088799090383828

Plotting the left and the right sides of the equation in one graph shows that the equation also has a positive solution:

ezplot(sin(x), -2, 2);
hold on;
ezplot(x^2 - 1, -2, 2)
hold off

You can find this solution by calling the MuPAD numeric solver directly and specifying the interval where this solution can be found. To call MuPAD commands from the MATLAB Command Window, use the evalin or feval function:

evalin(symengine, 'numeric::solve(sin(x) = x^2 - 1, x = 0..2)')

ans =
1.4096240040025962492355939705895

» 本帖已获得的红花(最新10朵)

showmethemoney
5楼2012-05-15 09:18:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

csgt0

荣誉版主 (著名写手)

彩色挂图

【答案】应助回帖

感谢参与,应助指数 +1
三个都是啊,我画出来3个点附近都接近2
showmethemoney
2楼2012-05-14 10:01:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

csgt0

荣誉版主 (著名写手)

彩色挂图

【答案】应助回帖

忘传图乐


» 本帖已获得的红花(最新10朵)

showmethemoney
3楼2012-05-14 10:01:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chaofan1231

银虫 (小有名气)

送鲜花一朵
引用回帖:
3楼: Originally posted by csgt0 at 2012-05-14 10:01:30:
忘传图乐
5d/87/449046_1336960887_743.jpg

是这样的,但是为什么matlab中解出来只有一个解?我想要的是前两个。
4楼2012-05-15 08:05:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chaofan1231

银虫 (小有名气)

送鲜花一朵
引用回帖:
5楼: Originally posted by csgt0 at 2012-05-15 09:18:57:
>> evalin(symengine, 'numeric::solve(2=exp((1/0.0000005461-1/0.000000700)*0.014388/x+ln((x-993.74731)/2869.03078)-5*ln(700/546.1)), x = 1000..2000)')

ans =

1092.7957902606343947864233 ...

6楼2012-05-15 14:54:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 chaofan1231 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 290求调剂 +6 材料专硕调剂; 2026-02-28 7/350 2026-03-01 09:21 by L135790
[考研] 291分工科求调剂 +5 science饿饿 2026-03-01 5/250 2026-03-01 09:19 by L135790
[考研] 0856求调剂285 +5 吕仔龙 2026-02-28 5/250 2026-03-01 09:18 by L135790
[论文投稿] Optics letters投稿被拒求助 30+3 luckyry 2026-02-26 4/200 2026-03-01 09:06 by babero
[考研] 285求调剂 +6 满头大汗的学生 2026-02-28 6/300 2026-03-01 06:29 by Trying]
[基金申请] 面上模板改不了页边距吧? +5 ieewxg 2026-02-25 6/300 2026-03-01 00:10 by addressing
[考研] 304求调剂 +3 52hz~~ 2026-02-28 5/250 2026-03-01 00:00 by 52hz~~
[考研] 317一志愿华南理工电气工程求调剂 +5 Soliloquy_Q 2026-02-28 8/400 2026-02-28 23:36 by xyx2012xyx
[考博] 26申博 +4 想申博! 2026-02-26 4/200 2026-02-28 21:37 by limorning
[考研] 材料学调剂 +5 提神豆沙包 2026-02-28 5/250 2026-02-28 21:34 by gaoxiaoniuma
[考研] 264求调剂 +3 巴拉巴拉根556 2026-02-28 3/150 2026-02-28 21:31 by gaoxiaoniuma
[考研] 311求调剂 +8 南迦720 2026-02-28 8/400 2026-02-28 21:30 by gaoxiaoniuma
[考研] 求调剂 +4 repeatt?t 2026-02-28 4/200 2026-02-28 21:16 by gaoxiaoniuma
[考研] 298求调剂 +8 人间唯你是清欢 2026-02-28 11/550 2026-02-28 20:26 by L135790
[考研] 0856材料求调剂 +10 hyf hyf hyf 2026-02-28 11/550 2026-02-28 18:50 by 无际的草原
[考博] 博士自荐 +3 kkluvs 2026-02-28 3/150 2026-02-28 16:59 by StarAura
[考研] 265分求调剂不调专业和学校有行学上就 +4 礼堂丁真258 2026-02-28 6/300 2026-02-28 16:18 by 求调剂zz
[硕博家园] 博士自荐 +6 科研狗111 2026-02-26 9/450 2026-02-28 12:32 by seaskyy
[基金申请] 面上可以超过30页吧? +12 阿拉贡aragon 2026-02-22 13/650 2026-02-26 22:09 by Hahaxia
[硕博家园] 【博士招生】太原理工大学2026化工博士 +4 N1ce_try 2026-02-24 8/400 2026-02-26 08:40 by N1ce_try
信息提示
请填处理意见