Timeline for Simplifying conditional expressions using assumptions does not work
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 23, 2015 at 9:03 | vote | accept | Nikki Bisschop | ||
Jan 23, 2015 at 1:19 | history | edited | Mr.Wizard | CC BY-SA 3.0 |
deleted 18 characters in body
|
Jan 23, 2015 at 1:13 | answer | added | Mr.Wizard | timeline score: 9 | |
Jan 23, 2015 at 1:04 | comment | added | Mr.Wizard | Actually, reviewing both of those questions again they each seem rather complicated. I like the simplicity of this question and its potential answer. I shall answer and see what the community wants to make of it. | |
Jan 23, 2015 at 1:00 | comment | added | Mr.Wizard | Great. However there is no need for an additional answer; this method has been posted to each of the two Q&A's linked in my comment above. | |
Jan 23, 2015 at 0:50 | comment | added | Nikki Bisschop | @Mr.Wizard Yes, that does exactly what I thought my expression would do. Could you write it as an answer? | |
Jan 23, 2015 at 0:46 | comment | added | Mr.Wizard | You can edit your question rather than deleting, or delete, edit, and undelete. Please first look at the Q&A's and example I gave above. | |
Jan 23, 2015 at 0:44 | comment | added | Nikki Bisschop | I do not think this question is now very useful to me or other users. It has upvotes though, so should I delete it? | |
Jan 23, 2015 at 0:44 | comment | added | Mr.Wizard |
@Nikki After a few minutes thinking I am guessing this question is a duplicate of one of these: (30312), (30322). For example you could write f[x_] /; Simplify[x \[Element] Reals] := "success!" and then Assuming[x \[Element] Reals, Simplify[f[x]]] which should yield "success!" . Does this work for you?
|
|
Jan 23, 2015 at 0:40 | comment | added | Nikki Bisschop |
@Szabolcs Thanks for pointing out the difference between mathematics and programming constructs. I see it does work with ConditionalExpression , but as you may have guessed this was not my real problem, so I will try to figure out how to formulate my real question.
|
|
Jan 23, 2015 at 0:11 | comment | added | Nikki Bisschop | @bbgodfrey Yes, I meant that, I must have copy-pasted the wrong part. Thanks for mentioning. | |
Jan 23, 2015 at 0:09 | history | edited | Nikki Bisschop | CC BY-SA 3.0 |
deleted 6 characters in body
|
Jan 22, 2015 at 23:55 | comment | added | bbgodfrey |
Do you mean, "{f[1], f[Sin[4]], f[I], f[a]} evaluates to {1, Sin[4], f[I], f[a]} ?
|
|
Jan 22, 2015 at 23:41 | comment | added | Szabolcs |
You are mixing things used for representing mathematical concepts with programming constructs. ; is a programming construct: it just influences evaluation. It is not meant o be used this way and Simplify won't (and shouldn't) operate on it. I tried to write an answer but then I realized that the real question is: what do you want to do here? You can take a look at ConditionalExpression which is meant for representing a mathematical concept, but whether it is of use to you depends on what you are trying to do.
|
|
Jan 22, 2015 at 23:37 | history | asked | Nikki Bisschop | CC BY-SA 3.0 |