24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1179  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 279学硕食品专业求调剂院校 20+4 孤独的狼爱吃羊 2026-04-12 17/850 2026-04-12 20:23 by bljnqdcc
[考研] 296求调剂 +14 汪!?! 2026-04-10 16/800 2026-04-12 10:48 by zhouyuwinner
[考研] 一志愿西北工业大学289 085602 +33 yang婷 2026-04-10 34/1700 2026-04-12 08:11 by Art1977
[考研] 288求调剂,一志愿华南理工大学071005 +18 ioodiiij 2026-04-08 18/900 2026-04-11 20:25 by liyun12321
[考研] 266求调剂,一志愿哈工程电子信息,本科获多项国奖和省奖 +8 lumine1 2026-04-06 8/400 2026-04-11 18:35 by 逆水乘风
[考研] 296求调剂 +6 汪!?! 2026-04-09 6/300 2026-04-11 11:25 by zhq0425
[考研] 275求调剂 +9 1624447980 2026-04-08 10/500 2026-04-11 10:20 by Delta2012
[考研] 中药学调剂 初试324 +4 洋甘菊、 2026-04-10 6/300 2026-04-11 09:41 by gong120082
[考研] 362求调剂 +10 我要考大 2026-04-06 14/700 2026-04-10 17:00 by luoyongfeng
[考研] 071000生物学调剂求助 +17 zzzzwww 2026-04-09 20/1000 2026-04-10 15:55 by 求调剂zz
[考研] 机械专368 有去处吗 +4 种大树 2026-04-10 4/200 2026-04-10 15:31 by jiajinhpu
[基金申请] 有爆料,一个青年教师卖房得400万,然后换了一个四青帽子 +9 babu2015 2026-04-08 9/450 2026-04-10 11:43 by 苏东坡二世
[考研] 085501机械英二77总分294求调剂,接受跨专业学习 +6 守法公民亓纪 2026-04-08 6/300 2026-04-09 15:55 by wp06
[考研] 调剂 +12 月@163.com 2026-04-08 12/600 2026-04-09 14:27 by rl1980
[考研] 材料考研求调剂总分280 +30 mkjlz1 2026-04-06 35/1750 2026-04-08 21:25 by cyh—315
[考研] 一志愿华东理工085601材料工程303分求调剂 +15 a1708 2026-04-06 15/750 2026-04-08 16:23 by luoyongfeng
[考研] 313求调剂 +3 十六拾陆 2026-04-07 3/150 2026-04-07 23:20 by lbsjt
[考研] 机械调剂 +3 zzzbcb 2026-04-07 3/150 2026-04-07 22:19 by hemengdong
[考研] 材料调剂 +17 小刘同学吖吖 2026-04-06 18/900 2026-04-07 11:41 by 诗与自由
[考研] 一志愿北交大材料工程总分358求调剂 +10 cs0106 2026-04-05 12/600 2026-04-06 19:41 by 无际的草原
信息提示
请填处理意见