219 views

### How to programmatically modify a function definition

I would like to know an efficient method (without converting Mathematica Code to strings and string processing) of modifying a function definition programmatically. For example, I would like to tidy ...
64 views

### Textbook/tutorials recommendation for programmer's taste

I'm a programmer and new to Mathematica. Mathematica is still very mysterious to me. I know there are a lot of tutorials of Mathematica which cover contents of different functions, such as Plot, ...
437 views

### Implementing “do this, then return that” in function definitions

In Python, I often use local variables in defining functions, like so: def f(x): k = initialk < 'do something to k' > return(k) I would like to do ...
34 views

### Issue with variables/functions in solving equations

I've been posting some questions all around issues with defining and using variables/functions in Mathematica. Based on the answers/comments I got I still cannot make this simple code work... Why is ...
176 views

### Pure functions applied to a two dimensional list

Lets say I have a two dimensional list: list = {{a, b, c}, {aa, bb, cc}, {x, y, z}, {xx, yy, zz}}; and two pure functions: ...
37 views

### Grouping expressions by associative equivalence for a single operation

I would like to group expressions under associative equivalence, but only for a specific operation used in the expression (not for other operations). Say we have two binary operations A and B ...
49 views

### Why don't these function definitions work? [closed]

picked up Mathematica (transitioning from Python) a couple of days ago so forgive me for the newbie question. I'm trying to create a function which takes in a list of numbers and returns a list of the ...
141 views

...
69 views

### Avoid Recursion in lag and difference operations

I have a panel data situation and I'm interested in taking lags and differences and using Mathematica to simplify the algebra of the result. Currently I'm working with a model like this: ...
56 views

### Syntax Error in NDSolve Code [closed]

I am trying to solve the motion equations for the Trojan Asteroids in Sun-Jupiter system. However, i am getting this error Syntax: '(' cannot be followed by 'x[t],y[t]' in this code ...
197 views

### How can I obtain the domain of a resulting Interpolating Function?

I have a problem with obtaining the domain of resulting Interpolating Function in my calculations. I want to solve the following differential equation ...
238 views

### Where to look up information about some symbols, such as “,”, “[” and “]” (not string)?

Searching { in F1 documentation, one at least gets an item for List. But the same thing is not happening for ...
617 views

### Code for an iteration method

As I am new to writing code for Mathematica, I would really appreciate if someone could provide me the code for the following iteration process. For $x_0\in[1,2]=C$, x_{n+1}=(1-\alpha_n)Sx_n+\...