Znn3bq.jpeg
±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 2240  |  »Ø¸´: 15

yan_fei

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

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

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

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

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

ѧϰ֪ʶ

» ²ÂÄãϲ»¶

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

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

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µÄ»ØÌû

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µÄ»ØÌû

dbb627

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

¡ï ¡ï
xiegangmai: ½ð±Ò+2, ר¼Ò¿¼ºË, ÐÁ¿àÁË£¡ 2012-08-02 23:03:57
ÄܸøÏ²ÎÊýÂð£¬ÓпÉÄÜalphaÖµ²»ºÏÊÊ£¬Äã¿ÉÒÔ¿´ÏÂÕâ¸öÀý×ÓËætµÄ¸Ä±ä alphaÊÇÊÕÁ²µÄ
function yan
global s phi lam alpha
s=3.2;
phi=1;
lam=3;
alpha=0.6;
%[X,FVAL,EXITFLAG,OUTPUT]=fsolve(@sumt,10)
t=0.1:1:10000;
for i=1:length(t)
    ya(i)=sumt(t(i));
end
plot(t,ya,'*-')
   
   

function y=sumt(t)
global s phi lam alpha
y=0;
N=0:floor(s*t-phi);
yN= poisspdf(N,lam*t);
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.
6Â¥2012-07-30 22:59:15
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

yan_fei

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

ÒýÓûØÌû:
6Â¥: Originally posted by dbb627 at 2012-07-30 22:59:15
ÄܸøÏ²ÎÊýÂð£¬ÓпÉÄÜalphaÖµ²»ºÏÊÊ£¬Äã¿ÉÒÔ¿´ÏÂÕâ¸öÀý×ÓËætµÄ¸Ä±ä alphaÊÇÊÕÁ²µÄ
function yan
global s phi lam alpha
s=3.2;
phi=1;
lam=3;
alpha=0.6;
%=fsolve(@sumt,10)
t=0.1:1:10000;
for i=1:len ...

ԭʼÊý¾ÝÊÇÕâÑùµÄ£ºphi=9;lam=0.1389;alpha=0,7%,21%,38%,54%,68%,78%,86%91%,94%,97%;
phiºÍlamÖµ²»±ä£¬alphaÒÀ´ÎÈ¡0~97%¶ÔÓ¦¼ÆËã³ötµÄÖµÊÇ£ºt<20,t=21,t=23;t=25;t=27;t=29;t=31;t=33;t=35;t=37;t=39.
7Â¥2012-07-31 08:27:41
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dbb627

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

ÒýÓûØÌû:
7Â¥: Originally posted by yan_fei at 2012-07-31 08:27:41
ԭʼÊý¾ÝÊÇÕâÑùµÄ£ºphi=9;lam=0.1389;alpha=0,7%,21%,38%,54%,68%,78%,86%91%,94%,97%;
phiºÍlamÖµ²»±ä£¬alphaÒÀ´ÎÈ¡0~97%¶ÔÓ¦¼ÆËã³ötµÄÖµÊÇ£ºt<20,t=21,t=23;t=25;t=27;t=29;t=31;t=33;t=35;t=37;t=39....

sµÄȡֵÊǶàÉÙÄØ£¿£¬Èç¹ûalphaÒÀ´ÎÈ¡0~97%¶ÔÓ¦¼ÆËã³ötµÄÖµÊÇ£ºt<20,t=21,t=23;t=25;t=27;t=29;t=31;t=33;t=35;t=37;t=39£¬ÄÇô¼ÆËã½á¹ûÓ¦¸Ã²»»á½â²»³öÀ´
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.
8Â¥2012-07-31 08:52:14
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

yan_fei

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

ÒýÓûØÌû:
8Â¥: Originally posted by dbb627 at 2012-07-31 08:52:14
sµÄȡֵÊǶàÉÙÄØ£¿£¬Èç¹ûalphaÒÀ´ÎÈ¡0~97%¶ÔÓ¦¼ÆËã³ötµÄÖµÊÇ£ºt<20,t=21,t=23;t=25;t=27;t=29;t=31;t=33;t=35;t=37;t=39£¬ÄÇô¼ÆËã½á¹ûÓ¦¸Ã²»»á½â²»³öÀ´...

²»ºÃÒâ˼ÍüÁËдsµÄÖµÁË£¬s=0.5.
9Â¥2012-07-31 08:55:08
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dbb627

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

¡ï ¡ï
xiegangmai: ½ð±Ò+2, лл²ÎÓ룡 2012-08-02 23:04:08
Õâ¸öȷʵҪ¹À¼ÆÏÂt£¬¿ÉÒÔ×öͼ¹À¼Æ
function yan
global s phi lam alpha
s=0.5;
phi=9;
lam=0.1389;
A=[0,0.07,0.21,0.38,0.54,0.68,0.78,0.86 0.91,0.94,0.97];
for i=1:11
   alpha=A(i) ;
[X(i),FVAL(i),EXITFLAG,OUTPUT]=fsolve(@sumt,16+i*1.9);
end
X
FVAL
t=0.1:0.1:50;
for i=1:length(t)
    ya(i)=sumt(t(i))+alpha;
end
plot(t,ya,'-')
hold on;plot(X,A,'ro')
   
   

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=poisspdf(N,lam*t);
y=sum(yN)-alpha;
%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.
10Â¥2012-07-31 09:27:24
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ yan_fei µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] »¯Ñ§308·ÖÇóµ÷¼Á +14 ÄãºÃÃ÷ÌìÄãºÃ 2026-04-07 16/800 2026-04-07 23:09 by JourneyLucky
[¿¼ÑÐ] 081700£¬311£¬Çóµ÷¼Á +17 ¶¬Ê®Èý 2026-04-04 18/900 2026-04-07 12:50 by Sammy2
[¿¼ÑÐ] 286Çóµ÷¼Á +20 Faune 2026-04-06 20/1000 2026-04-07 11:33 by Ê«Óë×ÔÓÉ
[¿¼ÑÐ] ²ÄÁϹ¤³Ì302·ÖÇóµ÷¼Á +13 zyxÉϰ¶£¡ 2026-04-04 13/650 2026-04-07 11:14 by Ê«Óë×ÔÓÉ
[¿¼ÑÐ] 0817»¯Ñ§¹¤³ÌÓë¼¼ÊõÇóµ÷¼Á£¬Ò»Ö¾Ô¸Öк£Ñó319 +14 lv945 2026-04-04 14/700 2026-04-06 10:20 by À¶ÔÆË¼Óê
[¿¼ÑÐ] Çóµ÷¼Á +5 chenxrlkx 2026-04-05 7/350 2026-04-06 07:54 by houyaoxu
[¿¼ÑÐ] ¹¤¿Æ08-»úеר˶-Çóµ÷¼Á +3 À×Å··ÉÌß 2026-04-02 3/150 2026-04-05 18:49 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 295Çóµ÷¼Á +8 FZAC123 2026-04-03 8/400 2026-04-05 17:46 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 288Çóµ÷¼Á£¬Ò»Ö¾Ô¸»ªÄÏÀí¹¤´óѧ071005 +6 ioodiiij 2026-04-04 6/300 2026-04-05 10:09 by guoweigw
[¿¼²©] É격 +7 IQwQl 2026-04-04 7/350 2026-04-04 23:32 by mumin1990
[¿¼ÑÐ] ÇóÉúÎïѧѧ˶µ÷¼Á¡ª¡ª364·Ö +7 ÔÆ¶äåÞÍäÖ¸ÄÏ 2026-04-04 7/350 2026-04-04 22:49 by zhyzzh
[¿¼ÑÐ] 294Çóµ÷¼Á +6 Grey_Ey 2026-04-02 9/450 2026-04-04 22:07 by hemengdong
[¿¼ÑÐ] Ò»Ö¾Ô¸0817»¯Ñ§¹¤³ÌÓë¼¼Êõ£¬Çóµ÷¼Á +24 ÎÒ²»ÊÇÖ»Òò 2026-04-02 28/1400 2026-04-04 15:15 by dongzh2009
[¿¼ÑÐ] 297Çóµ÷¼Á +11 ljy20040718£¡ 2026-04-03 13/650 2026-04-04 09:23 by À´¿´Á÷ÐÇÓê10
[¿¼ÑÐ] 317·Ö Ò»Ö¾Ô¸½­ÄÏ´óѧ »¯Ñ§¹¤³Ìѧ˶ Çóµ÷¼Á +6 YinTai 2026-04-03 6/300 2026-04-03 22:30 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] ½¨»·£¬ÄÜÔ´£¬ÍÁľÀÏʦ·¹ý¿´Ò»¿´£¡£¡£¡ +5 ºÙºÙuu 2026-04-01 5/250 2026-04-03 11:47 by znian
[¿¼ÑÐ] 295Çóµ÷¼Á +7 Ô¸ÂÃ;ÓÀԶ̹Ȼ 2026-04-02 7/350 2026-04-03 08:22 by fangshan711
[¿¼ÑÐ] 366Çóµ÷¼ÁÒ»Ö¾Ô¸¶«±±´óѧ +8 ÔËÆøÀ´µÃÈôÓÐËÆÎ 2026-04-02 8/400 2026-04-02 21:39 by dongzh2009
[¿¼ÑÐ] Çóµ÷¼ÁÍÆ¼ö +3 ÄÏɽÄÏ@ 2026-04-01 3/150 2026-04-02 12:09 by xiaoranmu
[¿¼ÑÐ] ¡¾Çóµ÷¼Á¡¿ÐÂÄÜÔ´²ÄÁϱ¾¿Æ£¬Ò»Ö¾Ô¸211£¬³õÊÔ321 +6 Çóµ÷¼ÁѧУ£¬ 2026-04-02 6/300 2026-04-02 09:41 by Çç¿Õ210210
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û