Passing conditional functions as arguments of Integrals etc

Passing conditional functions as arguments of Integrals etc - 消息

#1 已发布: 2014/7/27 10:59:10
sid87pl

sid87pl

0个赞,共1个帖子。

组: User

Hi guys,

Recently, I have tried to integrate function of the form:

f(x)= if x<100
g(x)
else
h(x)

over x=(0-105) using build in integral operator. However, there is an error: 'x-not defined'. I can easily overcome this problem by simply writing:

Int(f(x)) [from 0 to 100] + Int(g(x)) [from 100 to 105]

However, I think that a possibility of using user-created conditional functions in Integral or Derivative operators could be a very useful feature.

Best,
Daniel
#2 已发布: 2014/7/27 12:41:54
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Hello,

Do you use the Interactive SMath Handbook by Martin Kraska (Interactive books from Gallery) as the default Reference Book inside SMath?
Read the part about Integration from this book, please.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • 有新帖
  • 无新帖