Tagged Questions
0
votes
0answers
64 views
How can I get tabular output for the results of my simulation? [closed]
I have code that simulates a simple Markov Chain and looks like this:
...
0
votes
1answer
195 views
How can I define a Step-Wise function in Mathematica (Not using Heaviside Step Function)? [closed]
I need to define a function, which has very different behaviour in different regions. There are about 13 different regions. A sample of my function is the foloowing table:
I want to define it as a ...
2
votes
3answers
106 views
Defining a function to determine when convergence is guaranteed
I'm investigating how many iterations are needed for a particular orbit to reach a fixed point of a function. Since I have many functions to test, I want to define a function
in Mathematica that will ...
4
votes
4answers
204 views
Differentiating space curves
I'm trying to do some very basic differential geometry of space curves. For example, a space curve $\gamma:\mathbb R\to\mathbb R^3$ has unit tangent and normal vectors given by
...
2
votes
1answer
104 views
Can my permutations function be defined using iteration?
I have two functions, tuples and perm. They are similar.
...
2
votes
0answers
60 views
From notebook,how can I change variable value with in .m file dynamically?
I wrote a function named Testing.
...
6
votes
3answers
199 views
4
votes
2answers
156 views
How can I improve this trial division procedure?
My background is procedural programming, so I find this construction quite natural. Is there a way to get rid of the While?
...
4
votes
6answers
172 views
Filter list with different list in it
I have a list like:
{{{4, 14}, 1}, {{4, 15}, 1}, {{4, 16}, 1}, {{4, 17}, 1},
{{4, 18}, 1}, {{4, 14}, 3}, {4,15}, {{4, 16}, 2},{4,18}}
Now I want to ...
2
votes
0answers
77 views
Evaluating a function on permutations of its arguments
Say I have a function "temp" of $n+1$ variables, $y,z1,z2,z3,...,zn$. I want to test if my function has certain symmetries like swapping $y$ with square of any $z$, swapping any two of the zs, ...
4
votes
2answers
175 views
Define product derivative
How do I define the $n$th product derivative of a function in Mathematica?
The first product derivative $f^\ast$ of a function $f$ is
$$
f^\ast(x)=\exp\left(\frac{f^\prime(x)}{f(x)}\right)
$$
The ...
1
vote
2answers
103 views
How can define a set of nested parameters
I would like to know how I to define a function with a nested set of parameters (or whatever you would like to call it). For example, how would I get the following function ...
14
votes
3answers
349 views
Using pure functions in Table
I need a table with the elements made of pure functions and list elements. This is a simplified example:
I need a list as:
...
2
votes
3answers
151 views
Ways to change an explicit function into a pure function
I'm trying to use FixedPoint to solve a transcendental equations, but the first argument of the FixedPoint should be a pure ...
4
votes
1answer
182 views