| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 3 months |
| seen | Mar 26 at 14:06 | |
| stats | profile views | 127 |
Not to be offended
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? You are still using a Condition, but in special form. May be it can be used easier, without throwing? See my update. |
|
Oct 29 |
revised |
How to leave function unevaluated programmatically? added 212 characters in body |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? May be this sort of Condition may be used easier? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @jVincent so I am in chat :) |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @jVincent I did explained what wrong with condition: (1) it requires double computation and (2) it is declarative. I need procedural solution. Of course people minus me because they don't like to accept they are wrong, I am familiar with this phenomenon. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @jVincent my question is general and it was clearly stated in English. Of course I am not interested in writing my own Sqrt function defined for positive numbers. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? If people would like to be helpful they would not set minuses to me. People just don't know the answer and are trying to make me responsible for this. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @sebhofer I want all simplifications be in one routine and don't want to do the job twice; aren't these a good reasons??? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @sebhofer, I gave (1) a question, (2) an example and (3) any answer I was requested. People just don't believe me that Condition is not perfect. I don't know why and I don't know why is it unbelievable since everything is imperfect... |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @sebhofer I can't post hundreds lines of code here. But you can trust me that I currently use Condition and I dislike it's behavior. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @jVincent I don't believe you will suddenly remember what you didn't remember yet if I provide more complex example. From my point of view the question is clear. Probably the answer is "impossible" and this is ok. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @jVincent example is above; I am writing my own algebra and my own simplification routines; I want all simplifications be in one routine; I don't want to spread it into numerous separate statements with various conditions and each condition with code repeating part of main routine |
|
Oct 29 |
awarded | Commentator |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @J.M. how to use $Failed for that purpose? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? This means that both solutions are incomplete since do not fully resemble Condition behavior. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically?Condition has a disadvantage that in complex situations I need to do the job twice: once while checking if function is applicable and secondly when calculating it. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @chris, ah that looks good; is this totally equivalent to Condition? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @chris this works differently with F[a] (returns If[a >= 0, Sqrt[a], F[a]] but should return F[a]) |
|
Oct 29 |
revised |
How to leave function unevaluated programmatically? added 135 characters in body |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? Not in declaration, not in pattern definition. In PROCEDURAL manner. |