Questions tagged [nested-function]
The nested-function tag has no summary.
22 questions
4
votes
3
answers
178
views
How to apply a list of binary operators to a list of arguments respecting standard operator precedence?
I have a list of binary functions such as {Plus, Times, Subtract} and a list of symbols like {a, b, c, d}. I want to construct ...
10
votes
11
answers
507
views
Riffle a list of binary functions into list of arguments to produce a result
Suppose I have a list of binary functions, e.g.
funcs = {Plus, Times, Power}
as well as a list of arguments, e.g.
...
5
votes
2
answers
283
views
Complicated nested function construction with two lists of arguments
Given arguments arg1 and arg2 and function f I want the output to be ...
1
vote
0
answers
98
views
Is the documentation of NestWhileList[] incorrect? [Edit: it is not] [closed]
The documentation of NestWhileList indicates the following:
NestWhileList[f,expr,test,m]
supplies the most recent m results as arguments for test at each step.
...
2
votes
2
answers
81
views
How to fix parameter locally for iterating recursion equations
The following is a simplified version of a more detailed problem.
I have two coupled recursion equations of two variables, x and y. One equation also depends on a parameter, c:
...
5
votes
2
answers
244
views
How to use functional iteration with changing function?
I recently came across this problem on reddit. The problem is supposed to be read like a snake, and the result of each succesive operation is sent to the next operation:
There are 9 blank boxes and ...
3
votes
1
answer
185
views
Nested integration of the list of functions returns error
I have a list of expressions which I would like to integrate by nested integration. For any element from the list it works without issues (see end of the post), however, when I apply nested ...
4
votes
2
answers
299
views
Given two functions, generate all nested applications of the functions to a given order
I have two functions $f$ and $g$. Given some order parameter $n$, I want to created all nested applications of $f$ and $g$ and save them in a list. For example, for order 1 we will have ...
2
votes
0
answers
133
views
Optimizing prallel computing for nested integration
I need an advice for optimization of computing with ParallelMap, as well as general hints to speed up computing discussed below. I have several questions about this ...
1
vote
1
answer
139
views
Map list of strings to appropriately nested functions
I have a list of strings consisting of sequences of "+" or "-"'s. For example, let's take the list
...
8
votes
8
answers
659
views
Apply function to all first arguments of a nested list of rules
Currently, I have a nested list of rules of the form
lst1={1->a,2->{3->c,4->d,5->{6->f,7->{8->h,...}}}}
(where I don't know the length of ...
0
votes
0
answers
57
views
Integration and extraction of nested lists
I'm not explaining it well and I think it's a long explanation leading up to the key question, sorry.
There is order[x] consisting of randomly selected number {a,b} elements.
...
2
votes
2
answers
193
views
Nested radical implementation
I am attempting to code
$$F(x,n)=\sqrt{x+\sqrt{x+2\sqrt{x+\cdots +n\sqrt{x}}}}.$$
For example,
$$F(x,1)=\sqrt{x+\sqrt x},$$
$$F(x,2)=\sqrt{x+\sqrt{x+2\sqrt x}},$$
and so on. I found the ...
0
votes
1
answer
118
views
Delayed evaluation of nested functions
i am new to Mathematica. Here is the situation:
I have a exponential function of n,t that I want to calculate integral over t ...
3
votes
2
answers
217
views
Updating multiple columns based on a nested value in an association, create a nested function?
I have a dataset that looks like this and I sorted them by ts since that corresponds to the values of when the data was taken. After reading the primer on associations and keys, and this question, I ...
4
votes
2
answers
312
views
Enumeration of a nested list
My problem is consisting of following:
I have a nested list of following form:
{{B, v ** v, b ** B}, {b, B ** b}, {b ** B, v ** v}, {}}
And I want to enumerate ...
2
votes
0
answers
58
views
Use FoldList to successively ImageAdd regular polygons with between 3 and 8 sides, and with opacity 0.2 [closed]
This question is from Section 29 of "An Elementary Introduction to the Wolfram Language".
The objective is to successively add regular polygons with between 3 and 8 sides, and with opacity 0....
0
votes
0
answers
71
views
Nested NIntegrate with Matrix Exponential
I wish to perform a numerical integration which involves a matrix exponential. Here's the following code
...
1
vote
1
answer
190
views
Numerical solution of simple nested integral equations
I want to solve the following two equations:
$$q(h,T)=\int_{-\infty}^{\infty} \frac{1}{2\pi}e^{-\frac{z^2}{2}}\,\mbox{tanh}^2\left(\frac{z\sqrt{q(h,T)}+h}{T}\right) dz$$
and
$$T^2=\int_{-\infty}^{\...
0
votes
1
answer
154
views
Wolfram Alpha simplifying $\sqrt{1+x^\sqrt{1+x^\sqrt{1+...}}}$ incorrectly [closed]
I am pretty new to Wolfram Alpha. I want Wolfram Alpha to find the derivative of $\sqrt{1+x^\sqrt{1+x^\sqrt{1+...}}}$. At the moment, I am having trouble with Wolfram Alpha simplifying it incorrectly.
...
1
vote
1
answer
92
views
Nested sequence evaluation seems to fail [closed]
I tried do define two OIES Sequences like that:
...
1
vote
0
answers
117
views
How to use FunctionCompile and Compile as external definition?
Let's consider the following functions (in $Version: 12.3.0 for Linux x86 (64-bit) (May 10, 2021))
...