| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 3 months |
| seen | Mar 26 at 14:06 | |
| stats | profile views | 128 |
Not to be offended
|
Jan 19 |
comment |
Apply rule only if applicable? Check rule applicability? Custom unapplicable rule? By MyRule1 = MyHead1[x_MyHead2] | MyHead1[x_MyHead3] -> x I meant a rule, which applies to expression with head 2 or 3 and gives x in the case. Isn't it correct? |
|
Jan 19 |
revised |
Apply rule only if applicable? Check rule applicability? Custom unapplicable rule? added 311 characters in body; edited title |
|
Jan 19 |
comment |
Apply rule only if applicable? Check rule applicability? Custom unapplicable rule? I want to implement custom algebra with custom heads, transformations and simplifications. I am surprised Mathematica is not well suitable for this. |
|
Jan 19 |
asked | Apply rule only if applicable? Check rule applicability? Custom unapplicable rule? |
|
Jan 19 |
accepted | Custom attributes? |
|
Jan 19 |
comment |
Custom attributes? Ah, I found SetOptions function. |
|
Jan 19 |
comment |
Custom attributes? Thanks. But how to change individual option of a symbol? |
|
Jan 19 |
asked | Convert boolean test function to pattern? |
|
Jan 19 |
asked | Custom attributes? |
|
Jan 15 |
awarded | Nice Question |
|
Jan 14 |
accepted | How to modify function argument? |
|
Jan 14 |
asked | How to modify function argument? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? @Mr.Wizard thank you for comprehension! |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? Here (Null /; False); construct is approximately Fail[] function Mathematica lacks. The difference that it can't work nested and should be at the end of procedure always |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? Even better F1[x_] := (If[x >= 0, Return[Sqrt[x]]]; (Null /; False);) |
|
Oct 29 |
accepted | How to leave function unevaluated programmatically? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? Ok, this looks like a final and sufficient solution I was looking for. It both uses condition and procedural. So I was wrong avoiding condition at all and people were wrong forcing condition in normal form. |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? You mean I pass entire answer to condition while you assigned it to a variable first? |
|
Oct 29 |
comment |
How to leave function unevaluated programmatically? Sorry don't catch the difference between I wrote and you wrote? |
|
Oct 29 |
revised |
How to leave function unevaluated programmatically? added 212 characters in body |