²é¿´: 2207  |  »Ø¸´: 15
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû

yan_fei

Òø³æ (СÓÐÃûÆø)

[ÇóÖú] ¸÷λÅóÓÑ£¬ÈçºÎÓÃmatlab±àдÕâ¸ö·½³Ì£¬²¢Çó½â£¿

¸÷λÅóÓÑ£¬×î½üÓöµ½Õâôһ¸ö·½³Ì£¬²»ÖªµÀÈçºÎÓÃmatlab½â¾ö£¬·½³ÌÈçÏ£º
¹«Ê½ÖеÄδ֪ÊýÊÇt£¬ÆäËûµÄ¶¼ÊÇÒÑÖªµÄ¡£ÔõôÓÃmatlab±àдÕâ¸ö·½³Ì£¬²¢Çó½â£¿Çë¸÷λÅóÓѰïæ£¬Ð»Ð»£¡

·½³Ì
»Ø¸´´ËÂ¥

» ÊÕ¼±¾ÌûµÄÌÔÌûר¼­ÍƼö

ѧϰ֪ʶ

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dbb627

ÈÙÓþ°æÖ÷ (ÖøÃûдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ...
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xiegangmai: ½ð±Ò+3, ллӦÖú£¡ 2012-07-30 21:50:21
yan_fei: ½ð±Ò+130, ¸ÐлÕâλÅóÓѵĻظ´£¬½ð±ÒÈ«²¿¸øÄ㣡²»¹ý²»ÖªµÀΪʲô³õÖµ²»Í¬£¬½á¹û²î±ðºÜ´ó£¬ÎÒÏëÖ»¸Ä±äalphµÄÖµÇóÏàÓ¦µÄt£¬Ëæ±ãÒ»¸ö³õÖµ¶¼ÄÜÇó³ö׼ȷµÄ½â£¬ÈçÖªµÀÍû¸æÖª£¡¸ÐлÄúµÄ°ïÖú~~~ 2012-07-30 22:39:56
CODE:
function yan
global s phi lam alpha
s=3.2;
phi=1;
lam=3;
alpha=0.6;
[X,FVAL,EXITFLAG,OUTPUT]=fsolve(@sumt,10)

function y=sumt(t)
global s phi lam alpha
y=0;
for N=0:floor(s*t-phi)
    y=y+exp(-lam*t)*(lam*t)^N/gamma(N+1);
end
y=y-alpha;

Equation solved.

fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.




X =

   10.0881


FVAL =

-9.6716e-010


EXITFLAG =

     1


OUTPUT =

       iterations: 2
        funcCount: 6
        algorithm: 'trust-region dogleg'
    firstorderopt: 2.0551e-010
          message: [1x695 char]
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
3Â¥2012-07-30 21:09:48
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
²é¿´È«²¿ 16 ¸ö»Ø´ð

yan_fei

Òø³æ (СÓÐÃûÆø)

ûÓÐÅóÓѻظ´°¡£¬Êǽð±ÒÉÙÂð£¿Ð¡µÜ½ð±ÒÓÐÏÞ£¬ÊÇÿÌìÐÁ¿àÇ©µ½»ýÔܵģ¬ÔÙ×·¼Ó100¸ö½ð±Ò£¬ÇëÖªµÀµÄÅóÓѰïæ£¬ÔõôÓÃmatlab±à³Ì°ÑÕâ¸ö·½³Ì½â³öÀ´£¬¹«Ê½ÇóºÍ·ûºÅÉÏÃæµÄ¡¾¡¿ÊÇÈ¡ÕûÊýµÄÒâ˼¡£
2Â¥2012-07-30 20:39:08
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dbb627

ÈÙÓþ°æÖ÷ (ÖøÃûдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï
xiegangmai: ½ð±Ò+2, ר¼Ò¿¼ºË, ÐÁ¿àÁË£¡ 2012-07-30 21:50:33
»òÕßÕâôдҲ¿ÉÒÔ
function yan
global s phi lam alpha
s=3.2;
phi=1;
lam=3;
alpha=0.6;
[X,FVAL,EXITFLAG,OUTPUT]=fsolve(@sumt,10)

function y=sumt(t)
global s phi lam alpha
y=0;
% for N=0:floor(s*t-phi)
%     y=y+exp(-lam*t)*(lam*t)^N/gamma(N+1);
% end
N=0:floor(s*t-phi);
yN=exp(-lam*t)*(lam*t).^N./gamma(N+1);
y=sum(yN);
y=y-alpha;
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
4Â¥2012-07-30 21:15:00
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

yan_fei

Òø³æ (СÓÐÃûÆø)

ÒýÓûØÌû:
4Â¥: Originally posted by dbb627 at 2012-07-30 21:15:00
»òÕßÕâôдҲ¿ÉÒÔ
function yan
global s phi lam alpha
s=3.2;
phi=1;
lam=3;
alpha=0.6;
=fsolve(@sumt,10)

function y=sumt(t)
global s phi lam alpha
y=0;
% for N=0:floor(s*t-phi)
%     y=y+ ...

Ê×ÏȸÐлÄúµÄ»Ø¸´£¬ÎÒ¸ÕÊÔÁËÏÂÄúµÄ³ÌÐò£¬ºÃÏñ¶Ô³õʼֵµÄÒÀÀµÐÔºÜÇ¿£¬Ã»´Î¸ø²»Í¬µÄ³õʼֵÇóµÄ½á¹û¶¼²»Ò»Ñù£¬¶øÇÒ½á¹û¼¸ºõºÍ¸øµÄ³õʼֵ²î²»¶à¡£ÎÒÊÇÏë¸Ä±ä²»Í¬µÄalphaµÄÖµÇó³ö¶ÔÓ¦µÄt. ³ÌÐòÔËÐкóµÄÌáʾΪ£º

No solution found.

fsolve stopped because the relative size of the current step is less than the
default value of the step size tolerance squared, but the vector of function values
is not near zero as measured by the default value of the function tolerance.



fsolve stopped because the relative norm of the current step, 4.694166e-013, is less than
max(options.TolX^2,eps) = 1.000000e-012. However, the sum of squared function values,
r = 9.759502e-003, exceeds sqrt(options.TolFun) = 1.000000e-003.

Optimization Metric                                               Options
relative norm(step) =  4.69e-013                max(TolX^2,eps) =  1e-012 (default)
r =  9.76e-003                                    sqrt(TolFun) = 1.0e-003 (default)


fsolve stopped because the relative norm of the current step, 4.694166e-013, is less than
max(options.TolX^2,eps) = 1.000000e-012. However, the sum of squared function values,
r = 9.759502e-003, exceeds sqrt(options.TolFun) = 1.000000e-003.

Optimization Metric                                               Options
relative norm(step) =  4.69e-013                max(TolX^2,eps) =  1e-012 (default)
r =  9.76e-003                                    sqrt(TolFun) = 1.0e-003 (default)
5Â¥2012-07-30 21:53:23
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 328Çóµ÷¼Á£¬Ó¢ÓïÁù¼¶551£¬ÓпÆÑо­Àú +5 ÉúÎ﹤³Ìµ÷¼Á 2026-03-17 9/450 2026-03-21 23:32 by zhujy1982
[¿¼ÑÐ] »¯Ñ§¹¤³Ì321·ÖÇóµ÷¼Á +18 ´óÃ×·¹£¡ 2026-03-15 22/1100 2026-03-21 20:20 by HHÁìÐä
[¿¼ÑÐ] ¿¼Ñе÷¼Á +3 ºôºô£¿~+123456 2026-03-21 3/150 2026-03-21 20:04 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤£¨0856£©304ÇóBÇøµ÷¼Á +3 Çñgl 2026-03-20 7/350 2026-03-21 19:05 by 15709483992
[¿¼ÑÐ] 0703»¯Ñ§297Çóµ÷¼Á +3 Daisy¡î 2026-03-20 3/150 2026-03-21 17:45 by ColorlessPI
[¿¼ÑÐ] Ò»Ö¾Ô¸ÖØÇì´óѧ085700×ÊÔ´Óë»·¾³×Ü·Ö308Çóµ÷¼Á +7 īīĮ 2026-03-20 7/350 2026-03-21 16:36 by barlinike
[¿¼ÑÐ] 299Çóµ÷¼Á +4 ijijijijλ 2026-03-21 4/200 2026-03-21 16:30 by barlinike
[¿¼ÑÐ] 22 350 ±¾¿Æ985Çóµ÷¼Á£¬ÇóÀϵÇÊÕÁô +3 ÀîéóÄÐ003 2026-03-20 3/150 2026-03-21 13:28 by ²«»÷518
[¿¼ÑÐ] 070300»¯Ñ§319Çóµ÷¼Á +7 ½õÀð0909 2026-03-17 7/350 2026-03-21 03:46 by JourneyLucky
[¿¼ÑÐ] 307Çóµ÷¼Á +3 wyyyqx 2026-03-17 3/150 2026-03-21 03:20 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸ Î÷±±´óѧ £¬070300»¯Ñ§Ñ§Ë¶£¬×Ü·Ö287£¬Ë«·ÇÒ»±¾£¬Çóµ÷¼Á¡£ +3 ³¿»èÏßÓëÐǺ£ 2026-03-18 3/150 2026-03-21 00:46 by JourneyLucky
[¿¼ÑÐ] ±±¿Æ281ѧ˶²ÄÁÏÇóµ÷¼Á +5 tcxiaoxx 2026-03-20 5/250 2026-03-20 21:35 by laoshidan
[¿¼ÑÐ] Ò»Ö¾Ô¸ÄÏÀí¹¤085701»·¾³302Çóµ÷¼ÁԺУ +3 ¿ûè÷ÎÀ¶Ó 2026-03-20 3/150 2026-03-20 19:28 by zhukairuo
[¿¼ÑÐ] 085601²ÄÁϹ¤³Ìר˶Çóµ÷¼Á +10 Ľº®mio 2026-03-16 10/500 2026-03-19 15:26 by ¶¡¶¡*
[¿¼ÑÐ] 328Çóµ÷¼Á£¬Ó¢ÓïÁù¼¶551£¬ÓпÆÑо­Àú +4 ÉúÎ﹤³Ìµ÷¼Á 2026-03-16 12/600 2026-03-19 11:10 by ÉúÎ﹤³Ìµ÷¼Á
[¿¼ÑÐ] 085601ר˶£¬×Ü·Ö342Çóµ÷¼Á£¬µØÇø²»ÏÞ +5 share_joy 2026-03-16 5/250 2026-03-18 14:48 by haxia
[¿¼ÑÐ] 334Çóµ÷¼Á +3 Ö¾´æ¸ßÔ¶ÒâÔÚ»úÐ 2026-03-16 3/150 2026-03-18 08:34 by lm4875102
[¿¼ÑÐ] 11408 Ò»Ö¾Ô¸Î÷µç£¬277·ÖÇóµ÷¼Á +3 zhouzhen654 2026-03-16 3/150 2026-03-17 07:03 by laoshidan
[¿¼ÑÐ] 333Çóµ÷¼Á +3 ÎÄ˼¿Í 2026-03-16 7/350 2026-03-16 18:21 by ÎÄ˼¿Í
[¿¼ÑÐ] 070303 ×Ü·Ö349Çóµ÷¼Á +3 LJY9966 2026-03-15 5/250 2026-03-16 14:24 by xwxstudy
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û