MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   Maple论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=35)
-   -   [问题] maple中函数如何实现自我调用 (https://www.labfans.com/bbs/showthread.php?t=18675)

刘曦晨 2013-01-28 16:23

maple中函数如何实现自我调用
 
例如y:=proc(x)
if x=1 then y=1;
else then y:=y(x-1)+x;
end if;
end;
我想出去来的是最终的结果 例如:y(5)出来的是15 不是y(4)+5 应该如何修改 谢谢


所有时间均为北京时间。现在的时间是 12:09

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.