108 views

### Efficient way to evaluate numerically product sines functions

I'm trying to perform integration of the following matrix. ...
269 views

### Converting a backward/forward sweep code for optimal control to _Mathematica_

I'm trying to convert to Mathematica a simple backward/forward sweep (with RK4 integrator) code to solve an optimal control problem in epidemiology, but I'm getting some error messages and I cannot ...
50 views

### Creating a For Loop to simulate matrix changes

I'm trying to create a For loop (Using the For syntax is a necessity for the future work I'd be performing) for a matrix given by the following lines of code: ...
391 views

### How do I modify a symmetric matrix while maintaining symmetry?

I'm trying to figure out how to create a For loop for a symmetric matrix. I have a 5 $\times$ 5 symmetric matrix consisting of 1's and 0's and I'm trying to ...
36 views

### Getting general::write error while making list in for loop [closed]

So I solved following ODE $$\frac{d^2y}{dx^2}+(a^2 (5+4\tanh( x))+b^2)y=0$$ in Mathematica. Now I need to create a list for further manipulation using the above solution. I wrote the following code: <...
292 views

### An efficient way to evaluate this expression with deeply nested Do loops

Is there an efficient way to evaluate something like this? ...
64 views

### Showing all elements from a list

I have a list with graphics. Some of elements in the list are None type, how can I display all elements from that list on one picture? ...
65 views

### For loop and predefined functions

I tried to write a function which is basically given by a for loop and some predefined functions. I checked already that all of the predefined functions are working, but somehow my for loop does not ...
79 views

### How can I multiply the elements of a list using loops?

{1,1,1,-2,1,2} How acn I multiply the elements in the list using loops?
73 views

### Quick Wolfram Question [closed]

This is my code so far: For[i=2, i<10, i++, Solve[x^i == x+1 && x >0]] I would like to sum up all the x values that it outputs. How can I do so?
51 views

### Why does my code not work? [closed]

Why does the following code not work? ...
80 views

### Error in Assignment

I want to create a matrix with each element updated as per the formula, whose inputs are dependent on the location of element in the matrix. ...
64 views

### How to save matrices from each iteration of i? [closed]

I am trying to get the transformation matrices from DH parameter table and would like to save each matrix (Ai) getting after each iteration of i. How can I do that? ...