Questions tagged [functions]
Questions about the use of built-in Mathematica functions, including pure functions.
3,910 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
160
views
Converting a list of a function in Mathematica
Assume that I define:
...
4
votes
2
answers
208
views
How to find x ranges where a function is one-to-one and its output is in a given range?
I have a list of functions like this:
...
12
votes
4
answers
533
views
Recursive anonymous functions with |-> notation
We can define anonymous functions like this:
#^2+#+1 &
or like this
x |-> x^2+x+1
When we want to define a recursive ...
0
votes
2
answers
107
views
How to extract the correct branch of a ConditionalExpression that a given range belongs to?
This function has two separate branches (not connected together):
func = ConditionalExpression[1/(1 - 2 x)^2, 0 < x < 1];
Given a range of ...
2
votes
1
answer
132
views
How can I add inequality constraints to Solve? [closed]
How can I add constraints to the Solve function?
For example, I tried:
...
0
votes
0
answers
68
views
The cases of Piecewise function are not recognized when calculated in Table
Before describing the problem, a short background on how it pops up.
I am solving a PDE problem on the [0,1]x[0,1] domain. To this end, I want to find the decomposition of some derivatives of the ...
3
votes
0
answers
235
views
Using Mathematica to boot a laptop
I would like to run Mathematica as an alarm clock that will wake me up by playing a predefined audiofile at a predefined time. This is easy enough to do by defining ...
7
votes
7
answers
368
views
Apply a function onto sublist and include an additional argument
I have myList, a list of triples:
myList = {
{a1, a2, a3},
{b1, b2, b3},
{c1, c2, c3}
};
I wish to apply a function ...
2
votes
1
answer
101
views
Do functions from a .m file loaded with Get automatically become available on all parallel kernels?
For a package, we use ParallelNeeds to make its functions available on all kernels for ParallelMap. For a ...
0
votes
0
answers
69
views
FindRoot inside FindRoot sometimes not working
I was trying to find the root of a function which is in-turn given only by the solution of FindRoot. The following does work for some values. For others it produces the same error as without the ...
5
votes
3
answers
327
views
How to improve the symbolic computation speed for plane geometry with multiple constraint conditions?
This is the simple geometry problem I want to solve:
In triangle ABC with side lengths a, b, c respectively, there is a point D on side AB, where AD = d. Find the length of CD.
When solving this ...
1
vote
1
answer
125
views
Multiple arguments when using functions
This question relates to the recent question in:
Creating permutations on a sublist of the list {1, 2, ..., n}
The following was suggested to create rules, then permutations using these rules:
...
0
votes
0
answers
70
views
Propagation of errors:
I am working on error propagation in Mathematica for a physics calculation involving tau lepton decay. I have a complex function that calculates the lifetime of the tau lepton based on various ...
3
votes
1
answer
118
views
Is there a built-in function or custom function that can perform symbolic solving under `GeometricScene` constraints?
In the new version of Mathematica, there is a new function called GeometricSolveValues that can solve for unknown geometric quantities in a geometric scene with ...
2
votes
3
answers
181
views
How to display a Range in a single horizontal line inside a Grid cell in PDF export?
How to prevent Range[...] from breaking into multiple lines inside a Grid cell when exporting to PDF?
I have the following code:
...