Linked Questions

0
votes
0answers
24 views

Append is not populating List [closed]

I am trying to do a parameter sweep for a two parameter objective function. The outcome will be stored in an array where each element will be a row. If the parameters are $\gamma$ and $\beta$ the ...
0
votes
0answers
54 views

How to make a hollow triangle with a star? [closed]

I want to construct a hollow triangle with stars on the borders. ...
1
vote
2answers
39 views

For loop over several arguments with different length each

I have a set of text files named in indexed way d1, d2, d3, d4, d5, d6, d7, d8, d9. I want to read them by Mathematica and export them back with other index names N(s1f1+s1f1), N(s1f1+s2f2), N(s1f1+...
484
votes
37answers
111k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
0
votes
0answers
48 views

Slow evaluation of derivative of Solution of NDSolve

I need to perform a Fourier Transform on the results of a ParametricNDSolve function as well as on the derivative of one of the coefficients. Now I do this by ...
0
votes
1answer
117 views

For loop to define a Matrix

Suppose I have a matrix, Mat = MatrixForm[{{1.5, 2.83034}, {1.50476, 2.82655}}] I need to define parameters such that in the matrix 'i'th component is 'Lambda' ...
0
votes
3answers
51 views

For loop and Append to update a list

I want to update a List, using a For-statement. It doesn't work as I expect. my data is like: ...
0
votes
1answer
65 views

Generating a list of outputs using For[] Loop

I have a question regarding the use of the For[] loop to generate a list of outputs from a function that generates random outputs. Essentially, creating a sample of ...
1
vote
1answer
93 views

Optimizing a slow For loop

I know that this is a "beginner question", and, in fact, I am. I want to improve my code, as it takes really too much time to run. I have already read some other discussions, like here, but ...
4
votes
2answers
130 views

Plotting Basis Order function

Does anyone know how could I plot the basis order functions for the following function (code below)? An example of what I should expect is https://en.wikipedia.org/wiki/Lagrange_polynomial#/media/...
3
votes
1answer
95 views

Plotting in for loop

I am having some problem while plotting the data being generated in for loop My aim is to plot the result of for loop while it is solving the equation for each value of w,i.e. plot between w and x ...
3
votes
1answer
36 views

How can I find the maclaurin coefficients of different iterations of the same function?

I'm rather new to Mathematica so I would greatly appreciate any help. I want to find the series expansion coefficients of iterations of a function and export them as a .csv. Here is what I have ...
2
votes
3answers
88 views

Performing iterated integrals

I would like to define a function $f_n(x)$ and plot it with Manipulate. The function is defined by $$ f_{n+1}(x)=\frac{1}{\int_0^1(f_n(x'))^2dx'}\left(\int_0^xf_n(x'...
6
votes
1answer
534 views

An efficient way to translate a triple for-loop from Matlab to Mathematica

This is my first post on StackExchange, so if I violate any etiquettes, I apologize in advance. I am a senior engineering student who has been using Mathematica for a year now. For one of my classes, ...
3
votes
3answers
276 views

For Loop to Sum numbers in a list

I'm asked to create a For[] loop that will sum positive numbers in a list. I am unsure of how to do this. ...

15 30 50 per page
1
2 3 4 5 6