Timeline for Function that returns a list of unevaluated functions in mathematica
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 13, 2017 at 0:13 | vote | accept | Steve | ||
May 2, 2017 at 21:52 | answer | added | Mauricio de Oliveira | timeline score: 1 | |
Dec 4, 2016 at 17:45 | answer | added | WReach | timeline score: 5 | |
Dec 4, 2016 at 12:19 | comment | added | Szabolcs |
R1[x_,y_]:=x is not a function. It is a function definition. The function itself is R1 . The definition cannot be returned unevaluated unless you wrap it by Hold . The function name can.
|
|
Dec 4, 2016 at 11:11 | comment | added | Steve | I am sorry. Here is an example : R1[x+y,z]=x+y. Another example R2[xy,a]=xy. I do not want the function to return the evaluation. I want it to return the function itself (in the simple case). In the more complicated case, I would like to return a list of such functions. Each one of them is also unevaluated. | |
Dec 4, 2016 at 10:42 | comment | added | Szabolcs |
Sorry, I still don't understand. Can you give an example of the actual output you want? R1[x_,y_]:=x cannot be the output because it immediately evaluates. Hold[R1[x_,y_]:=x] can be. Or do you just want to write a program that evaluates R1[x_,y_]:=x (not outputs it as a result)?
|
|
Dec 4, 2016 at 10:21 | comment | added | Steve | The definition is given in the list entered (an example is the first list above). So, I guess this fits in the first part of your question. | |
Dec 4, 2016 at 10:06 | comment | added | Szabolcs |
You mean you want a list of function definitions, each wrapped in Hold , to avoid evaluation? Or you want to automatically define these functions?
|
|
Dec 4, 2016 at 9:34 | review | First posts | |||
Dec 4, 2016 at 10:02 | |||||
Dec 4, 2016 at 9:33 | history | asked | Steve | CC BY-SA 3.0 |