Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [functional]

Questions related to functional methods, e.g. functional differentiation and integration.

0
votes
1answer
47 views

Could not able to set up a differential equations using EulerEquations command

I have a constructed the Lagrangian of a mechanical system by finding the kinetic and potential energy of the system. Then I tried using EulerEquations to set up a differential equation by taking the ...
0
votes
1answer
47 views

How do I compute the infinity-norm of a function? [closed]

I have a technical question on Mathematica 11. I have to compute the $\infty$ norm of q function, $f(x,y)$, on a rectangular domain $[a, b] \times [c,d]$. How can I do this with Mathematica?
2
votes
1answer
240 views

Symbolic Legendre transform

Is it possible to compute symbolically the Legendre transform of a function in Mathematica? I find no LegendreTransform function.
8
votes
1answer
242 views

Non-trivial functional derivatives

Looking for ways to calculate functional derivatives in Mathematica, I found this question. The answer by Jens points to a documented application of DiracDelta ...
1
vote
2answers
89 views

Define a functional and nest it with its arguments

I'm looking for a definition of a functional f which works correctly with varying arguments t while it will be nested. For ...
1
vote
1answer
90 views

How to call a function with an arbitrary list as its arguments inside a functional? [duplicate]

I have the following functional defined (i.e. a function of another function) where variableList contains the variable (arguments if you wish) of the ...
2
votes
2answers
93 views

Select Only Positive Values and Prepend a Title

I have the following list: ...
3
votes
1answer
108 views

Using functionals in Mathematica [duplicate]

I recently installed Mathematica and I wanted to define a functional in it. This is what I did: ...
1
vote
1answer
717 views

Using NDSolve initial conditions as parameters for a function and then a replacement rule

I am trying to make a function based on two initial conditions of a set of differential equations: ...
0
votes
1answer
141 views

Transpose four lists of data into two lists for use in List Plot [closed]

I have four lists of data x1 = {1,3,5,7} y1 = {0,2,4,6} x2 = {10,12,14,16} y2 = {8,10,12,14} In one line is it possible to use transpose to get two lists which ...
2
votes
0answers
105 views

How to implement time dependence in the DoFun package?

DoFun is a very usefull mathematica package that helps to write Dyson-Schwinger and FRG flow equations when these are to complex to write down by hand. You can download it here and read it's manual ...
0
votes
1answer
71 views

Folding 3-variate function with 2 iterator

I have a function say $f$ and some initial point $x$ and pairs of iterators $\{\{a_1,b_1\},\{a_2,b_2\},...\}$ I want to foldlist as follows: $\{x,f[x,a_1,b_1],f[f[x,a_1,b_1],a_2,b_2],...\}$ can ...
5
votes
1answer
104 views

Computing list elements that refer to earlier elements and two other lists without iteration

I am attempting to compute the elements of a list, $\{a_i\}$ given lists $\{b_i\}$ and $\{c_i\}$ using the following formula: $a_i = \frac{1}{c_1}(b_i - \sum_{j = 2}^{i}c_{j}a_{i-j+1})$ for $1\leq i \...
0
votes
0answers
487 views

Boundary value problem: complicated functionals

I am trying to solve a non-linear boundary value problem where the differential equation is a convoluted function of the variable I am trying to solve for. The equation below presents the final form ...
1
vote
0answers
252 views

Optimizing a functional using variational calculus

Here I am, trying to get the trajectory $(x(t),y(t))$ that will minimize the following Lagrangian (i.e. the integrand of the functional) between $(-1,-1)$ and $(-1,y_{eff})$ where $x_{eff}$ is defined ...
1
vote
1answer
122 views

Apply function to output of previous function

I am trying to write a function that takes 3 tuples. Each tuple contains two lists which are first divided. This results in 3 lists. Then I want to take the Mean of all the columns. I can do this ...
0
votes
1answer
114 views

Solve equation with two different sets of replacement rules

I want to solve eqn for c0 in the following code. I want to do it with both replacement rules. I realize I could just use solve ...
1
vote
1answer
654 views

MapThread multiple functions onto multiple lists

I'm trying to learn the functional style which seems to prevail in Mathematica. I'm having trouble accomplishing the following: Let's say I have multiple lists of arbitrary data (using two lists ...
2
votes
0answers
84 views

Different delays in notebook and command-line?

I was surprised by the following sequence of expressions: Remove[foo$, bar$]; foo$ = Function[Set[bar$, 42]]; At this point, I expected ...
6
votes
1answer
672 views

Functional programming Style & Performance

Hello i have been spending time to convert my R tools into Mathematica Packages mainly because i like the functional programming style in Mathematica. In doing so it seems that i run into one ...
3
votes
2answers
445 views

Writing Fold in terms of Map or MapThread?

Consider Fold[f,z,{a,b,c}] ==> f[f[f[z,a],b,c]] I'm looking for a way to write this (in general) using Map or ...
21
votes
6answers
3k views

Looking for a way to insert multiple elements into multiple positions simultaneously in a list

I would like to take the following data: insertValues = {r, x}; insertPositions = {{1}, {5}}; originalList = {a, b, c, d, e, f, g}; and generate output that ...