For questions on writing functions (pure or using Set/SetDelayed) for any purpose, including the features that may be incorporated in those functions, such as options, patterns and conditions.
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
0answers
44 views
Finding coefficients that make certain functional expression vanishing
My problem is to find a procedure that gives coefficients which make certain functional expression vanishing.
For example if I have a polynomial $P(x)$ of one variable $x$ given by $P(x)=a_0+a_1 ...
0
votes
1answer
74 views
Strange function definition result [duplicate]
I'm relatively new to Mathematica, and I'm trying to define a function f(k) that would do the following:
For any positive integer $k$, a finite sequence $a_i$ of fractions $\frac{x_i}{y_i}$ is ...
0
votes
0answers
52 views
Enable syntax-coloring on user-defined function [duplicate]
Possible Duplicate:
Syntax highlighting for your own functions
I have defined a function myIntegrate that carries out a routine similar to Mathematica's ...
0
votes
0answers
88 views
-1
votes
2answers
88 views
How can I define a function which is the sum of other functions?
I have a function which is summation of another function over different i,j iterators.
U[r] = Sum[V[r, i, j], {i, 1, 5}, {j, 6, 10}]
and ...
-1
votes
1answer
66 views
Dynamically show a specific number of the fractional part's digits
What is the fastest way to cut off all n z digits of the fractional part of a real number?
(For example 12390.20934230)
I came up with this so far:
...
-1
votes
1answer
170 views
Multivariate Function Approximation With a Large Dataset
I have a nice amount of data from a trading strategy I am working on, where I have two different liquidity parameters as x, y variables.
Before entering a trade I am taking the moving average of ...
-4
votes
2answers
148 views
How to correctly call a Module within another Module?
How to embed and call the correct embedded modules inside another Module?
Say:
...