Art Kalb

187 Reputation

11 Badges

12 years, 274 days

MaplePrimes Activity


These are replies submitted by Art Kalb

Hi,

This does not work if N is not bound to a number.

add(n,n=select(isprime,[$1..N])) generates an error

add(n,n=select(isprime([$1..10])) is o.k.

 

I would like something like the first option. Conversion of the add command to a sum is an invalid form for sum.

 

Any ideas?

 

 

 

Hi,

 

Thanks for the reply. What you are doing is not quite what I had in mind. I am looking to sum over the integers minus a finite set, not sum the integers minus a certain. Specifically, I am trying to write a procedure that will sum terms that do not have removable singularities separately from the terms that do have removable singularities.

An example...

b[n]=2*sin(Pi*n)/(Pi*(n^2-1))     (yes, this is a fourier series...)

The above coefficients over n (positive integer <= N) have a removable singularity at n=1. I would like write the fourier series as the addition of the removable terms plus the rest of the terms. In many cases, all the coefficients of terms without singularities will be zero.

I hope this clarifies things a bit.

 

Art

Hi,

 

Thanks for the reply. What you are doing is not quite what I had in mind. I am looking to sum over the integers minus a finite set, not sum the integers minus a certain. Specifically, I am trying to write a procedure that will sum terms that do not have removable singularities separately from the terms that do have removable singularities.

An example...

b[n]=2*sin(Pi*n)/(Pi*(n^2-1))     (yes, this is a fourier series...)

The above coefficients over n (positive integer <= N) have a removable singularity at n=1. I would like write the fourier series as the addition of the removable terms plus the rest of the terms. In many cases, all the coefficients of terms without singularities will be zero.

I hope this clarifies things a bit.

 

Art

Hi,

 

I guess I should have included the caveat of 3D. I was aware of this package, but it doesn't appear to do three-dimensional problems.

 

Regards.

 

Hi, Thanks Art
Hi, Thanks Art
Hi, Thanks for the input. I was really looking for a way to do this when N is indeterminate. I didn't say N was indeterminate, sorry. Any suggestions? Art
Hi, Thanks for the input. I was really looking for a way to do this when N is indeterminate. I didn't say N was indeterminate, sorry. Any suggestions? Art
Hi, Thanks for the clarification. Regards, Art
Hi, Thanks for the clarification. Regards, Art
Hi, I am perplexed as to what is being tracked. There does not appear to be a bug mentioned. Art
Hi, I am perplexed as to what is being tracked. There does not appear to be a bug mentioned. Art
Hi Robert, With your example, "has(sin(x)^2+cos(x)^2,x)" is also true. So, I don't see the difference between "has" and "depends" in this case. Regards, Art
Hi Robert, With your example, "has(sin(x)^2+cos(x)^2,x)" is also true. So, I don't see the difference between "has" and "depends" in this case. Regards, Art
Hi, Thanks for the reply. I was using assumptions that Ip was real. I believe it was global. I didn't do anything to make it explicitly local. When you say save a procedure you mean something that takes an argument? t-> (something) I had created these "functions" via unapply. Does anyone have any more detail on why saving something with assumptions should make it unrecognizable as the same variable? Thanks, Art
1 2 3 4 5 6 Page 5 of 6