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

yan_fei

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

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

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

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

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

ѧϰ֪ʶ

» ²ÂÄãϲ»¶

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

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢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µÄ»ØÌû
²é¿´È«²¿ 16 ¸ö»Ø´ð

yan_fei

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

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

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µÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 313Çóµ÷¼Á +3 ËÁÈþ·¡Ò¼22 2026-03-19 3/150 2026-03-21 08:01 by JourneyLucky
[¿¼ÑÐ] 316Çóµ÷¼Á +6 ÁºÜçö© 2026-03-19 6/300 2026-03-21 06:32 by Ecowxq666£¡
[¿¼ÑÐ] 301Çóµ÷¼Á +10 yyÒªÉϰ¶Ñ½ 2026-03-17 10/500 2026-03-21 03:14 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸ÖйúʯÓÍ´óѧ£¨»ª¶«£© ±¾¿ÆÆë³¹¤Òµ´óѧ +3 ʯÄÜΰ 2026-03-17 3/150 2026-03-21 02:22 by JourneyLucky
[¿¼ÑÐ] 280Çóµ÷¼Á +7 ¹¾ààÏþÏþ 2026-03-18 8/400 2026-03-21 01:27 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸ÖØÇì´óѧ085700×ÊÔ´Óë»·¾³×¨Ë¶£¬×Ü·Ö308Çóµ÷¼Á +3 īīĮ 2026-03-18 3/150 2026-03-21 00:39 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷ÄϽ»´ó£¬Çóµ÷¼Á +5 ²Ä»¯ÖðÃÎÈË 2026-03-18 5/250 2026-03-21 00:26 by JourneyLucky
[¿¼ÑÐ] 299Çóµ÷¼Á +4 shxchem 2026-03-20 5/250 2026-03-21 00:24 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] Ò»Ö¾Ô¸Äϲý´óѧ£¬327·Ö£¬²ÄÁÏÓ뻯¹¤085600 +9 Ncdx123456 2026-03-19 9/450 2026-03-20 23:41 by lovewei0727
[¿¼ÑÐ] 287Çóµ÷¼Á +7 ³¿»èÏßÓëÐǺ£ 2026-03-19 8/400 2026-03-20 22:19 by JourneyLucky
[¿¼ÑÐ] Çóµ÷¼Á +3 @taotao 2026-03-20 3/150 2026-03-20 19:35 by JourneyLucky
[¿¼ÑÐ] Çóµ÷¼Á +3 eation27 2026-03-20 3/150 2026-03-20 19:32 by JourneyLucky
[¿¼ÑÐ] ¸´ÊÔµ÷¼Á +4 z1z2z3879 2026-03-14 6/300 2026-03-19 17:18 by fei626-918
[¿¼ÑÐ] 0703»¯Ñ§ 305Çóµ÷¼Á +4 FY_yy 2026-03-14 4/200 2026-03-19 05:54 by anny19840123
[¿¼ÑÐ] 334Çóµ÷¼Á +3 Ö¾´æ¸ßÔ¶ÒâÔÚ»úÐ 2026-03-16 3/150 2026-03-18 08:34 by lm4875102
[˶²©¼ÒÔ°] ºþ±±¹¤Òµ´óѧ ÉúÃü¿ÆÑ§Ó뽡¿µÑ§Ôº-¿ÎÌâ×éÕÐÊÕ2026¼¶Ê³Æ·/ÉúÎï·½Ïò˶ʿ +3 1ϲ´º8 2026-03-17 5/250 2026-03-17 17:18 by ber´¨cool×Ó
[¿¼²©] 26É격 +4 °Ë6°Ë68 2026-03-16 4/200 2026-03-17 13:00 by ÇáËɲ»ÉÙËæ
[¿¼ÑÐ] 333Çóµ÷¼Á +3 ÎÄ˼¿Í 2026-03-16 7/350 2026-03-16 18:21 by ÎÄ˼¿Í
[¿¼ÑÐ] 304Çóµ÷¼Á +5 ËØÄê¼ÀÓï 2026-03-15 5/250 2026-03-16 17:00 by ÎҵĴ¬Îҵĺ£
[¿¼ÑÐ] 070305Çóµ÷¼Á +3 mlpqaz03 2026-03-14 4/200 2026-03-15 11:04 by peike
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û