# Items tagged with intint Tagged Items Feed

### Expected Value of a function...

January 08 2015
0 2

Hello people in Mapleprimes,

I want to do calculations about an expected value.

For example,

expectedvalueofc.pdf

that is, \int_a^b c d \Omega

where, \Omega is a distribution function of c.

But, I don't know whether this equation can be put into worksheet.

Is there no way other than writing this as

\int_a^b c g(c) dc,

where g shows a probability density function.

Can I use Statistics[ExpectedValue] to calculate expected value with a general distribution function, not specified

to normal distribution?

I hope you will give me some hints.

Best wishes.

### display in loop...

December 22 2014
0 5

Dear all;

I need your help to display the value of phi[jj] in the following loop.

phi[1]:=(x,y)->exp(x-y);

for jj from 1 by 1 to 2 do
phi[jj+1]:=(x,y)->int(phi[1](x,s)*phi[jj](s,y),s=y..x);
end do;

but the index jj in the integral does not change. I have any idea what is the problem.

Thank you very much for your help.

### can maple give answer for int(cos(x)^n,x) ?...

December 13 2014
2 11

Was trying to see if I can get the reduction formulas for int(cos(x)^n,x) in maple. But it seems no assumption used can make Maple give any result for this.  Mathematica gives a result using Hypergeometric2F1 (even with no assumption on n, which I am not sure about now), but was wondering why maple can't do this one:

restart;
int( (cos(x))^n,x) assuming n::integer;

int( (cos(x))^n,x) assuming n::posint;
same

In Mathematica, I get:

I am newbie in Maple, so may be I am missing some command or doing something wrong.

ps. I was trying to obtain

But this is lost case now. I just need to find out first why int(cos(x)^n,x) does not evaluate to anything in Maple.

fyi, the Hypergeometric result for $\int cos^n(x) \,dx$ can be seen in this reference (half way down the page):

http://www.integraltec.com/math/math.php?f=cosPower.html#cos

ps. can't one enter Latex in this forum like at stack exchange?

### How can I enter an arbitrary partition for calcula...

December 05 2014
1 4

Hi there

How can I enter an arbitrary partition on an interval for calculating a Riemann sum by Maple 13?please write the concerning command.

Regards

Yegan

### integrate e gradient multiply to a vactor...

November 21 2014
1 5

Dear all,

I woul line integrate e gradient moltiply to a vector. I will try to explain better.

I have define this function:

and I have a vector a

v=(0,1)

I would like to applu a dot product between the gradient of phi an the vector and integrate the results.

Thanks

### Can not use int anymore, what is wrong?...

November 17 2014
1 7

I have updated  Maple from 18.01 to 18.02, but there is something strange happened to me. I can not use int anymore. Here is my codes:

restart;
int(sin(x),x);
Error, (in int) wrong number (or type) of arguments: invalid option value passed to indefinite integration: {}

kernelopts(version);
print(output redirected...); # input placeholder
Maple 18.00, X86 64 LINUX, Feb 10 2014, Build ID 922027

Here is the screenshot:

### Convolution of two sine functions...

November 12 2014
1 5

Hello,

I have a question: Why gives Maple no result for:

expr2 := sin(k*(t-tau))*sin(k*tau);
Int(simplify(expr2, symbolic), tau = 0 .. t);

It is possible with Wolfram Alpha: http://www.wolframalpha.com/input/?i=Int%28sin%28sqrt%28k%2Fm%29*%28t-tau%29%29*sin%28sqrt%28k%2Fm%29*tau%29%2C+tau+%3D+0+..+t%29

Thanks!

### How to fix: 'Error, (in int) integration range' ??...

October 30 2014
2 8

int(int(y, 0 <= y, x^2+y^2+z^2 <= 1));

Error, (in int) integration range or variable must be specified in the second argument, got 0 <= y

int(int(y, y = 0, x^2+y^2+z^2 = 1));

Error, (in int) integration range or variable must be specified in the second argument, got y = 0

### How to get the piecewise function of the int accor...

October 20 2014
0 3

Hi all

kx,ky is the wavenumber, how can I get the 4 cases of piecewise function according to kx=0,kx≠0 and ky=0,ky≠0. Thanks

J := assuming([4*(int(int(JJ*exp(-I*(kx*x+ky*y))*sin(2*l*pi*x/a)*sin(2*k*pi*y/b), x = 0 .. a, AllSolutions), y = 0 .. b, AllSolutions))/(a*b)], [k::posint, l::posint, a > 0, b > 0, JJ > 0])

### Integration of a Vector...

September 13 2014
1 6

Hi all

Assume that we have following vectors:

> V1 := [1/9, -5/9, 7/9, 1/9, -5/9, 7/9, 1/9, -5/9, 7/9];

>  V2:=t*V1;

and we want to compute the integral of V2, namely:

>  Int(seq(V2[i],i=1..9),t=0..1);
>

[       5 t  7 t         5 t  7 t         5 t  7 t]
V2 := [t/9, - ---, ---, t/9, - ---, ---, t/9, - ---, ---]
[        9    9           9    9           9    9 ]

Error, (in print/Int) invalid input: IntegrationTools:-GetOptions expects its 1st argument, v, to be of type Integral, but received Int(1/9*t,-5/9*t,7/9*t,1/9*t,-5/9*t,7/9*t,1/9*t,-5/9*t,7/9*t,t = 0 .. 1)

how we integrate from V2? why answer is wrong in my code?

thanks a lot

Ph.D Candidate

Applied Mathematics Department

### Integral problem with maple...

August 21 2014
1 9

I have a great problem with this integral and Maple gives two answers completely different:

so I get two different results :

or this:

In the first integral A get Lommels2 and If I get the Integral by using Taylor of  and after that I resum I get Lommels1.

Thank you.

### why maple can not solve this integral?...

July 14 2014
0 0

my int is in below.

my_int.mw

my int has hyperbolic and trigonal parts thus when they are multiplied , Maple is not able to integrate!

Now, How can I solve this integral?

thank you for help

my int is:

 >
 >
 >
 >
 >
 >
 >
 >

### Piecewise fuction of int...

May 08 2014
1 10

Hi all,

As we know that the indefinite integral in Maple is defined up to a piecewise constant.

For example,

Due to the indeterminate range of variable n, int returns the piecewise function.

But in the other similar case, we get a generic solution rather than a piecewise function,

Why not to returns the result like this,

Thanks for any help.

### Integral of a sum -> sum of integrals in Maple?...

April 27 2014
1 12

I have an expression like this:

Since it is linear I want Maple to rewrite it into this:

(with the benefit that Maple then can solve it at least up to a point). i have tried to conceive a rule to do that but got stuck relatively quickly. Does anybody have a way to do this (in some genrality)?

Thanks,

Mac Dude.

### What is the limit...

April 10 2014
0 4

limit(t*(int(exp(-t*tan(x)), x = 0 .. (1/2)*Pi)), t = infinity)?

Is it possible to find it in Maple? The command

MultiSeries:-limit(t*(int(exp(-t*tan(x)), x = 0 .. (1/2)*Pi)), t = infinity);
outputs
.

 1 2 3 4 Page 1 of 4
﻿