找回密码
 注册
Simdroid-非首页
查看: 84|回复: 0

[基础概念] 【非原创】增加内置函数规则的(不修改内置函数)

[复制链接]
发表于 2011-9-28 14:35:51 | 显示全部楼层 |阅读模式 来自 黑龙江哈尔滨
本帖最后由 TBE_Legend 于 2011-9-28 14:38 编辑
  1. ClearAll[oIntegrate];

  2. SetAttributes[oIntegrate, HoldAll];

  3. oIntegrate[code_] :=
  4.   Block[{Integrate}, Integrate[Sin[x_], x_] := Abs[x]; code];

  5. Integrate[Sin[x], x]
  6. oIntegrate@Integrate[Sin[x], x]
  7. oIntegrate@Integrate[Cos[x], x]
复制代码

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-3-29 20:22 , Processed in 0.027531 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表