Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Code for N-point DFT x[k] [closed]

...
0
votes
1answer
42 views

How do I assign values to variables which comprise a matrix?

I have a m x n matrix (5 x 5) and I wish to assign values for m1,m2, m3, etc and n1, n2, and n3 etc, without changing the a[m x n] values. I'm not looking so much for a direct solution but maybe a ...
1
vote
0answers
61 views

Solutions given by WolframAlpha [closed]

When I try to solve, the following equation over the integers using WolframAlpha: $$x^2(1+x)=y(3y-1)\tag1$$ WolframAlpha gives me the following solutions $(x,y)$: $$(-1,0),(0,0),(1,1),(4,-5),(6,-9)\...
2
votes
1answer
51 views

How to find the distances between two adjacent maxima in a solution from NDSolve

I try to find a general approach to plot the time evolution of horizontal distances from maximum to maximum in a solution of PDE. The solution u[x,t] normally have ...
4
votes
3answers
231 views

Writing a program that will filter the integer solutions

I've the following equation: b==(-12 + Sqrt[3] Sqrt[ 3 (-4 + r)^2 + 12 a^2 (-2 + r) - 4 a (-5 + r) (-2 + r) + 4 a^3 (-2 + r)^2] + 3 r)/(6 (-2 + r)) ...
4
votes
1answer
78 views

Why is my version of Euler's Method not working?

I am creating Euler's method for $\frac{dw}{dt}=(3-w)(w+1)$ for $\Delta t=0.5$ from $0\le t \le 3$. I tried the following. ...
2
votes
1answer
38 views

Finding the 3D-model of a function that is rotated around the x-axis

How can I find the 3D model that is created by revolving the function: ...
2
votes
3answers
67 views

Find the number of true's in a TrueQ expression

How can I find how many times the code: Table[TrueQ[FractionalPart[Sqrt[n]] == 0], {n, 1, m, 1}] Gives the value True back for a variable $m$? So, we know that ...
4
votes
1answer
60 views

Cantor type iterations in Mathematica

I am trying to draw the iterations of the IFS in which from an interval middle third is removed and in the resulting figure left line is shifted 1/6th to the right and right line is shifted 1/6th to ...
8
votes
0answers
72 views

Design Patterns for System Functions?

Using PrintDefinitions give one a great view into many system functions. Often the design of these symbols incorporate multiple patterns that I see again and again. ...
0
votes
0answers
52 views
4
votes
1answer
54 views

Strange bug in LUP Decomposition

I have written LU decomposition with partial pivot, but for some matrices, the entry L[[1,1]] isn't equal to 1 like it should be,...