Rewrite of function into closed-form

  • Context: Graduate 
  • Thread starter Thread starter Big-Daddy
  • Start date Start date
  • Tags Tags
    Function
Click For Summary

Discussion Overview

The discussion revolves around rewriting a function P(a) that includes conditional statements into a closed-form expression, potentially using sigma notation. Participants explore methods for simplifying the function and express uncertainty about the best mathematical notation to use.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant requests assistance in rewriting a function with conditional segments into a closed-form expression, expressing uncertainty about the feasibility of this task.
  • Another participant suggests splitting sums to eliminate conditional cases, proposing that this could simplify the function.
  • A participant acknowledges their inexperience with mathematical notation and asks for advice on better operators to use instead of "forall," while reiterating the goal of removing conditional statements.
  • One participant provides an example of a summation with conditional cases and demonstrates how to separate the sums to simplify the expression.
  • A later reply indicates that the participant is beginning to understand how to split sigma functions but is uncertain about how to handle multiple cases within the summation operators.
  • Another participant suggests replacing "forall" with "for" or "|", and encourages applying similar splitting techniques to both cases in the summation.
  • A participant requests feedback on their attached solution and expresses a desire for accuracy and functionality over brevity.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to rewriting the function, and multiple competing views on notation and simplification methods remain present throughout the discussion.

Contextual Notes

Participants express uncertainty regarding the appropriate mathematical notation and the implications of their proposed changes on the function's structure. There are unresolved questions about the feasibility of achieving a closed-form expression from the original function.

Big-Daddy
Messages
333
Reaction score
1
Attached is a document with a function P(a) which contains several "if" sections, i.e. a different function applies depending on which value the dummy variables take.

Can anyone help me by rewriting this is as a straight, closed-form (sigma operators are fine) function in a? Or explaining why in this particular case it is impossible, if it is? I'd like something I can use to compute values of P(a) from a. In the current form, it cannot be used to compute values directly as far as I know.

My instinct is that you'd just need to separate out the operators for each different section. But really I have no idea. If you could help that would be great.
 

Attachments

Mathematics news on Phys.org
This is a very unusual way to use the "forall" operator.

You can split the second sum in a sum from i2=1 to ii-1 and consider i2=i1 as separate sum (with just 1 entry, so you can drop the sum sign and set i2=i1). This allows to get rid of the cases in the first bracket. The same can be done for the second part.

As all the sum indices do not depend on free parameters, you could just feed it to a computer algebra system and look at the result.
 
mfb said:
This is a very unusual way to use the "forall" operator.

Apologies for that, I wrote the function and so far I don't have too much experience with mathematical notation. What would be a better operator to use? (Not that it matters much - this thread is about removing the need!)

mfb said:
You can split the second sum in a sum from i2=1 to ii-1 and consider i2=i1 as separate sum (with just 1 entry, so you can drop the sum sign and set i2=i1). This allows to get rid of the cases in the first bracket. The same can be done for the second part.

As all the sum indices do not depend on free parameters, you could just feed it to a computer algebra system and look at the result.

Could you demonstrate, for the cases in the first bracket? I'll try and apply the same to the second bracket without asking back.
 
With my own example, as I don't want to open Word again (pdf or LaTeX would be better):
$$\sum_{i_1=1}^{6} \sum_{i_2=1}^{i_1} \begin{cases} 1\, \mathrm{for}\, i_1=i_2 \\ 2\, \mathrm{for}\, i_1>i_2 \end{cases}\\
= \sum_{i_1=1}^{6} \sum_{i_2=1}^{i_1-1} 2
+ \sum_{i_1=1}^{6} \sum_{i_2=i_1}^{i_1} 1
= \sum_{i_1=1}^{6} \sum_{i_2=1}^{i_1-1} 2
+ \sum_{i_1=1}^{6} 1$$
As the first summand is pointless for i1=1, this case can be dropped
$$= \sum_{i_1=2}{6} \sum_{i_2=1}^{i_1-1} 2
+ \sum_{i_1=1}^{6} 1$$
 
Thanks. I think I can see how to split one sigma function, but here we've got both cases and one multiplying the other, all within the summation operators. What's the rewriting then?

I've reattached as a PDF. The "forall" operator is still there as I'm not sure what to replace it with, but that is a secondary discussion.
 

Attachments

I would replace it with "for" or |. You can do the same splitting in both separate sums again.
 
Please check my solution (attached) to tell me if anything is wrong.

If there are any obvious simplifications that always hold, I'd love to hear, but I don't mind it being this long. Main thing is accuracy and functionality.
 

Attachments

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
502
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K