Message Boards Message Boards

0
|
4428 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Integrate with assumption of symmetric volume

Posted 9 years ago
POSTED BY: Danylo Malyuta
2 Replies

Hi, if your integrand is given in terms of S and S is not defined yet, then you could set the coefficient of S to zero:

expr = a S + b S^2 ;
expr = Collect[expr,S] /. Coefficient[expr,S] -> 0

or

expr = a S + b S^2 ;
expr = expr /. S -> S^n /. S^n -> 0 /. n -> 1

and after this define S explicitly and do the integrals.

I.M

POSTED BY: Ivan Morozov

I'm looking at another way. Suppose I have the big expression expr with many integrals. What if I do something like this:

Select[expr, MemberQ[#, S[x, y, z].S[x, y, z]] &]

My problem is the above does not work unless the integrand is exactly S[x, y, z].S[x, y, z]. How do I write the pattern such that the condition for True would be that just part of the integrand contains S[x, y, z].S[x, y, z]?

Thanks!

POSTED BY: Danylo Malyuta
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract