²é¿´: 2208  |  »Ø¸´: 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µÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 326Çóµ÷¼Á +5 ŵ±´¶û»¯Ñ§½±êéê 2026-03-15 8/400 2026-03-21 19:33 by ColorlessPI
[¿¼ÑÐ] Çóµ÷¼Á +5 Ê®Èý¼ÓÓÍ 2026-03-21 5/250 2026-03-21 18:48 by ѧԱ8dgXkO
[¿¼ÑÐ] ÉúÎïѧһ־Ը985£¬·ÖÊý349Çóµ÷¼Á +3 zxts12 2026-03-21 3/150 2026-03-21 16:34 by 33À´ÁËÕæÀ´ÁË
[¿¼ÑÐ] Ò»Ö¾Ô¸»ªÖпƼ¼´óѧ071000£¬Çóµ÷¼Á +3 ÑØ°¶Óб´¿Ç6 2026-03-21 3/150 2026-03-21 10:35 by ÄºÔÆÇ庮
[¿¼ÑÐ] 085601µ÷¼Á 358·Ö +3 zzzzggh 2026-03-20 4/200 2026-03-21 10:21 by luoyongfeng
[¿¼ÑÐ] 303Çóµ÷¼Á +5 î£08 2026-03-17 7/350 2026-03-21 03:11 by JourneyLucky
[¿¼ÑÐ] ²ÄÁÏ 336 Çóµ÷¼Á +3 An@. 2026-03-18 4/200 2026-03-21 01:39 by JourneyLucky
[¿¼ÑÐ] ²ÄÁÏרҵÇóµ÷¼Á +6 hanamiko 2026-03-18 6/300 2026-03-21 00:24 by JourneyLucky
[¿¼ÑÐ] 321Çóµ÷¼Á +9 ºÎÈó²É123 2026-03-18 11/550 2026-03-20 23:19 by JourneyLucky
[¿¼ÑÐ] ҩѧ383 Çóµ÷¼Á +3 ҩѧchy 2026-03-15 5/250 2026-03-20 22:11 by ÔÆÓÎÖØÑô
[¿¼ÑÐ] ²ÄÁÏѧ˶297ÒѹýËÄÁù¼¶Çóµ÷¼ÁÍÆ¼ö +11 adaie 2026-03-19 11/550 2026-03-20 21:30 by laoshidan
[¿¼ÑÐ] 295²ÄÁÏÇóµ÷¼Á£¬Ò»Ö¾Ô¸Î人Àí¹¤085601ר˶ +5 Charlieyq 2026-03-19 5/250 2026-03-20 20:35 by JourneyLucky
[¿¼ÑÐ] 289Çóµ÷¼Á +6 »³èªÎÕè¤l 2026-03-20 6/300 2026-03-20 20:30 by ѧԱ8dgXkO
[¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤×¨Ë¶µ÷¼Á +7 heming3743 2026-03-16 7/350 2026-03-20 19:31 by zhukairuo
[¿¼ÑÐ] ¹¤¿Æ²ÄÁÏ085601 279Çóµ÷¼Á +7 À§ÓÚÐdz¿ 2026-03-17 9/450 2026-03-20 17:38 by ÎÞи¿É»÷111
[¿¼ÑÐ] 320Çóµ÷¼Á0856 +3 ²»ÏëÆðÃû×Ö112 2026-03-19 3/150 2026-03-19 22:53 by ѧԱ8dgXkO
[¿¼ÑÐ] ²ÄÁϹ¤³Ìר˶µ÷¼Á +5 204818@lcx 2026-03-17 6/300 2026-03-18 22:55 by 204818@lcx
[¿¼ÑÐ] ÊÕ¸´ÊÔµ÷¼ÁÉú +4 ÓêºóÇïºÉ 2026-03-18 4/200 2026-03-18 14:16 by elevennnne
[¿¼ÑÐ] ÓÐûÓеÀÌú/ÍÁľµÄÏëµ÷¼ÁÄÏÁÖ£¬¸ø×Ô¼ºÕÐʦµÜÖС« +3 TqlXswl 2026-03-16 7/350 2026-03-17 15:23 by TqlXswl
[¿¼ÑÐ] Ò»Ö¾Ô¸ËÕÖÝ´óѧ²ÄÁϹ¤³Ì£¨085601£©×¨Ë¶ÓпÆÑо­ÀúÈýÏî¹ú½±Á½¸öʵÓÃÐÍרÀûÒ»ÏîÊ¡¼¶Á¢Ïî +6 ´ó»ðɽС»ðɽ 2026-03-16 8/400 2026-03-17 15:05 by ÎÞи¿É»÷111
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û