The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
68 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 ...
0
votes
1answer
67 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
49 views

Solve equation with two different sets of replacement rules

I want to solve eqn for c0. I want to do it with both replacement rules. I realize I could just use solve twice, once for subsCoke, and once for subsPepsi. I'm trying to do it in just one Sovle to ...
1
vote
1answer
149 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
75 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 ...
4
votes
1answer
312 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 ...
2
votes
2answers
184 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 ...
1
vote
0answers
105 views

Minimizing a functional takes forever

I need help with minimizing a functional in Mathematica. I have a function $V(\xi)=\sum_{i=1}^\infty C_{3_i}J_0(\xi/C_i)+C_{4_i}Y_0(\xi/C_i),~~~\Sigma\leq\xi\leq\xi_1$, and want to find such ...
16
votes
6answers
818 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}}; origlist = {a, b, c, d, e, f, g}; and generate output that looks ...