声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1531|回复: 1

[综合讨论] 对erfc函数的平方怎么求定积分?

[复制链接]
发表于 2009-6-11 17:22 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我知道对erfc(x)函数作定积分可以这样写:
ierfcy=int('erfc(x)',0,0.1) ; interfcx=subs(ierfcy);
>> interfcx
interfcx =
   0.09436748855146

那么对erfc(x)^2求定积分呢?
ierfcy=int('erfc(x)^2',0,0.1) ; interfcy=subs(ierfcy);
Warning: Explicit integral could not be found.
> In sym.int at 58
  In char.int at 9
>> interfcy

interfcy =
int(erfc(x)^2,x = 0 .. 1/10)

这个应该怎么改呢?哪位同学帮忙看看O(∩_∩)O~

[ 本帖最后由 ChaChing 于 2009-6-21 15:40 编辑 ]

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

发表于 2009-6-11 22:36 | 显示全部楼层
给你两句代码,用匿名函数表示被积函数

  1. format long
  2. f1= quadl(@(x) erfc(x),0,0.1)
  3. f2= quadl(@(x) erfc(x).^2,0,0.1)
复制代码

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-22 09:33 , Processed in 0.068175 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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