Wolfram Mathematica is a software system with built-in libraries for several areas of technical computing that allow symbolic computation, manipulating matrices, plotting functions and various types of data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other programming languages. It was conceived by Stephen Wolfram and is developed by Wolfram Research of Champaign, Illinois. The Wolfram Language is the programming language used in Mathematica.
hi
i can't make DSolve solve the wave equation with simple bvc
ive gone through the mathematica documentation and can't find the answer
for the input
\text{DSolve}\left[\left\{u^{(2,0)}[x,t]==4 u^{(0,2)}[x,t],u[x,0]==1,u^{(0,1)}[x,0]==\text{Sin}[x]\right\},u,\{x,t\}\right]
it just...
Hi all,
So I'm trying to solve, what I think are three coupled PDEs with NDSolve and it keeps giving me
NDSolve::ndode: Input is not an ordinary differential equation. >>
as an error. I don't quite understand why?
These are my PDEs for anyone that's interested. I will try to pretty them...
Hi All,
So I've been trying to create a matrix from a list of numbers and have been unsuccessful so far. Basically I would like to change
list = {1,2,3,4,5,6,7,8,9}
into
matrix =
1 2 3
4 5 6
7 8 9
The real problem is just a much...
I have this mathematica code to solve a variation of the 2 Dimensional Poisson's equation using the finite difference method.
xo = .5; yo = .5; \[Sigma] = .05; q = 1;
Gen[x_, y_] := -q*E^-((((x - xo)^2) + ((y - yo)^2))/(2*\[Sigma]^2));
GridNum = 300; Hstep = N[1/(GridNum + 1)];
GridPts...
I am kind of new to mathematica, and have checked the documentation but can't seem to find an answer.
I have solved 3 coupled differential equations using NDSolve.
I wish to integrate the solutions over a range but I'm not sure how to do it - the documentation seems to deal only with...
Hello everyone.
In Mathematica® I want to numerically integrate a function of k variables (k varies) with respect to all of them. Does anyone of you know a way to do that? I tried the following simplified example.
k = 5;
int[x_] := x[[1]] + x[[2]] + x[[3]] + x[[4]] + x[[5]] ; (* My...
Dear all,
Iam running a code which has only 2 main variables, i.e. m and n using Module. I have tried to run the code as attached but it is not working.
Please help me to improve the code so that I would be able to get qmatrix[m,n].
Perhaps, is there any other better method to use or...
hi
i want to solve equation d/dt(A)=B which A and B are n by n matrices. the matrices variable is t which is time.
1-how i can solve this equation?
2-how i can obtain asymptotic solution for time=infinite?
i use some help of this topic but i get error in mathematica...
Is there a way in Mathematica to find the local maxima of a set of points? I have a fairly fine data set, and I can clearly see several peaks in it that I would like to know the numerical value of (as in, the highest point- I don't need a spline approximation or anything too fancy like that). I...
hello ,
I need to solve a differential system with mathematica that has the form :
B'=A*B
knowing that B and A are (12,12) Matrix and with initial conditions B(0)=I
Can you help me please
Thanks
I am doing multi scale analysis while solving a particular nonlinear PDE. I am trying to check a solution I have for a particular set of boundary conditions and governing equation, to a given order.
Is there a simple way to sort scales on Mathematica? For example, if our small parameter is...
Hello. I am using the Smooth.m mathematica package on a large set of paired data points. Occasionally, instead of getting a number in my output array, I end up with something like this:
1. (0.861515 + (58 "")/2379)
In the output window, the quotes are not visible, but when I copypasta it...
I have an equation and some inequality constraints, for example,
f(x,y)=0 and g(x,y)>0
I want to see the region (values of x and y) in a graph where both the constraints are satisfied in Mathematica. Any help will be greatly appreciated. Thanks!
Hi guys, I would like to construct 2 vectors on a coordinate grid.(or a vector field for only one t) of the forces between 2 point particles on a certain moment t. Can I do that?
When I try the VectorPlot function and insert all values instead of also inserting a variable it gives the error that...
Hey guys,
So I have been playing with LogLogPlot in Mathematica and it seems to me that PlotRange->{a,b} does not work. I also tried Show[%,PlotRange->{a,b}] but somehow my axes got cut off. Anyone knows how to do it if I want to display a certain area of a log-log plot?
Dear all,
Iam trying to get the right codes so that the summation could be done in the Do-Loop function using Mathematica.
The problem is that I could not get the summation for sumU1 and sumV1 to start from 1 using my codes as attached (Summation2.nb).
Please help me to improve the...
Hello,
While doing a research, I obtained the following PDF:
f_{Z}(z)=\frac{1}{2\pi\sigma^{2}_{1}\sigma^{2}_{2}}e^{-\frac{1}{2} ( \frac{\mu^{2}_{1}}{\sigma^{2}_{1}} + \frac{\mu^{2}_{2}}{\sigma^{2}_{2}})}\int^{2\pi}_{0}ze^{-\frac{1}{2\sigma^{2}_{1}\sigma^{2}_{2}}\{...
Hello I'm trying to plot log as part of an equation in mathematica and it does not seem to be working for me.
for example I'm using Plot y = 25x / log10 (x) - 50x
I'm just experimenting with different numbers and formulas to see what happens to the log curve...
I've constructed a visualisation of the solution of an equation over time as a sequence of MatrixPlots and I'd like to export this as a movie for use in a presentation, but whatever file extension I try, I either get an error message
(e.g. "The Export element \!\(\"GraphicsList\"\) contains...
Hello,
I'm trying to find out how I can let Mathematica know what is a variable and what is a parameter when asking it to simplify an expression.
For example: if I have the following expression
\[Beta] \[CapitalOmega] ((1 - \[Gamma] y) \[Xi] \[Sigma] + (x - \[Xi]) \[CapitalOmega]) + a...
Hello. Can someone tell me what I can do to the following code fragment:
sigma = {2,4,6,8}
mu = {1,3,5,7}
gauss[x_, mu_, sigma_] = (1/(2*\[Pi] * sigma^2))*
E^-((x - mu)^2/(2*sigma^2))
lorentz[x_, m_, gamma_] = 1/(\[Pi]*gamma*(1 + ((x - m)/gamma)^2))
spec1 = Apply[Plus, gauss[x, mu...
Hi all,
Please help me with regard to my problems about replacement syntax.
Iam looking for a method such that Mathematica won't use the previous output as an input for the subsequent cells or codes. Instead, I wish Mathematica express the replacement in terms of expressions for the...
hye everyone...i would like to ask question. i just wonder how to calculate question faster without solving one by one.for my equation given.i want to know
if r increase by=1,2,3,4,5 and value of s are not change,how can i do without fill r by 1,2,3,4,5 one bye one.(q is fixed value).example...
Hi there,
I have altogether 17 formulations or expressions which are repetitive and have link from each other.
My question is that how to make these formulation or expressions in a simpler form. In another word, how to make the codes or syntax become shorter due to these repetitive...
Hello,
I attempt to fit experimental data using FindMinimum function with Levenberg-Marquardt (LM) method. I know that the problem can be solved with FindFit function (or other methods of finding minimum), but I really have to use FindMinimum function and LM method. Therefore, I would...
I realized that Mathematica is extremely expensive, and I want to ask users whether it is worth the money (considering that there are other CAS such as Maxima)?
Hi there,
Iam just wondering that at different values of m and n, the position of eigenvalues are always varies accordingly. I mean, the outputs positions of eigenvalues are not consistent given by mathematica.
Please see attached file for reference.
My question is that how to fix this...
"Small" quantities in mathematica
Hi, I'm doing a calculation in which I have a small parameter \epsilon floating around, and I want to automatically remove terms of order \epsilon^2 and higher. Is this possible to do?
Hello ,
I have tried to solve a system of differentiel equations with mathematica that is presented as follow
X[t_] = {x1[t], x2[t], x3[t], x4[t], x5[t], x6[t] , x7[t], x8[t],
x9[t], x10[t], x11[t], x12[t]};
system = MapThread[#1 == #2 &, {X'[t], A.X[t]}];
where the matrix A is...
Hello,
Let's say we have
f[x_,y_]:= whatever
then we say
expr1 = D[f[x,y],x]
which is some complicated expression.
How can we get the answer in terms of f[x,y]? That is, how can we get expr1 to look like:
expr1 = f[x,y]*this term + pi*Sqrt[f[x,y]] + et cetera?
Thanks Gurus
Hi,
I'm trying to make a table/matrix in mathematica to describe a system of differential equations that I have. At the moment, what I want is a table with the first column reading
(A*v*(1-v)*(1-a)-w-w0)/e
and the second column reading
v-g*w-v0
and I want to be able to arbitrarily...
I need to solve a differential system with mathematica that is presented like this :
eqns = {
X1'[t] ==
A[[1]][[1]] X1[t] + A[[1]][[2]] X2[t] + A[[1]][[3]] X3[t] +
A[[1]][[4]] X4[t] + A[[1]][[5]] X5[t] + A[[1]][[6]] X6[t],
X2'[t] ==
A[[2]][[1]] X1[t] + A[[2]][[2]]...
\text{In}[1]:=\text{Solve}\left[\partial _{\theta } \text{Sin}[\theta ]==0,\theta \right]
\text{Out}[1]:=\left\{\left\{\theta \to -\frac{\pi }{2}\right\},\left\{\theta \to \frac{\pi }{2}\right\}\right\}
Is there a Mathematica source code command that can read a specific numerical value...
Hi all,
Please help me to solve my problem in Mathematica that involves simultaneous equations with large matrices. The code is provided in the attached file, Exercise1.nb
the errors say like this " General::unfl: Underflow occurred in computation. >>
General::unfl: Underflow occurred...
Dear All,
I am plotting a density and a contour plot of the same function in order to have a smooth shading in the background of the contour lines. I do this using "Show[DensityPlot[...], ContourPlot[..., ContourShading->None]", like the following example given by Mathematica help files...
Hi, I am trying to do a transformation on an image with the program Mathematica in the same way stated in the following scientific article :
http://arxiv.org/PS_cache/arxiv/pdf/0710/0710.0021v1.pdf
I would like to associate each pixel of the picture with a pair of natural numbers. I used the...
Hi PhysicsForummers!
I'm working to export some dynamic animations from Mathematica to Powerpoint but found that the only way is to export into a video file before inserting into Ppt.
This makes the picture blur and i wonder is there any way i can export without dramatic loss in quality...
My problem is this: I have an algebraic expression, and I want to express it in terms of one variable divided by another. It's a fairly large expression, and I'd like to do it in mathematica before attempting it by hand. I've tried Simplify, FullSimplify and Solve, but none of these have done...
Dear All,
I started to use Mathematica to make some plots I usually did with gnuplot. I know it has some great color schemes, but I would like to be able to use the same I was using in gnuplot.
The question is: how could I create a color scheme? In gnuplot I just used the following command set...
Hi everyone,
I'm pretty new to Mathematica, and I'm trying to find the maximum value of an interpolating function.
I'm looking at Fitzhugh-Nagumo dynamics and below is what I have so far. My 'fitz1' gives me 4 variables each described as an Interpolating Function, and I would like to find...
Hello, I've started learning how to numerically integrate ODE's and I've run aground when i posed a 2nd order system for mathematica.
Here is my initial code:
NDSolve = [{x'[t] == -y[t] - x[t]^2, y'[t]==x[t], x[0]==1, y[0]==0.5},{x,y},{t,0,30}]
and i get an error message saying the...
I know by default that Mathematica will use the BFGS method when you request "FindMinimum[Function]" but I am curious for a hint towards a pseudo-code for the following problem:
I have a collection of functions, say F = {f1,f2,...,fN} and I want to transform them as linear combinations of one...
Write a program in Mathematica that makes a plot of the period of a simple pendulum vs. its amplitude, as the amplitude (the initial angle from which the pendulum is released from rest) ranges from theta = 0 to theta = Pi/2. Use the built-in function NDSolve to solve the exact differential...
All,
I have a ListSurfacePlot3D graphic and wish to label the tick marks using strings. For example if I have X={x1,x2,x3} I would like to label each tick mark at that point with a string, i.e. x1="a", x2="b" etc.
I would also like to know how to take a list of strings and distribute them...
I'm trying to compute the eigenvalues and eigenvectors of a 4x4 matrix using mathematica.
The problem comes when I try to check the values using the commands:
{vals, vecs} = Eigensystem[m]
TrueQ[m.vecs[[1]] == vals[[1]] vecs[[1]]]
Which should return "True"; instead it returns "False"
I...
I have a dat file with multiple data sets, with the following structure:
# t = 0.0 , ...
-10.000 0.00001 1.000001 ...
-9.000 0.00002 0.900001 ...
...
10.000 0.00005 1.000001 ...
# t = 0.2 , ...
-10.000 0.00301 1.000203 ...
-9.000 0.02222 0.900043 ...
...
10.000 0.00025 1.000551...
Hi,
I have the following simple code in Mathematica:
a=1;
step=0.5;
b=2;
y=a^2-5
-4
What I need to do, is make Mathematica calculate the value of y each time for a different value of "a" ranging from the initial value of 1 to "b"(=2) in "step" increment (=0.5), and remember previous...
I'm having a simple problem with simplifying of logs. Given the input :
FullSimplify[8 Log[m1] - 8 Log[m2] + 4, m1 > 0 && m2 > 0]
FullSimplify[8 Log[m1] - 8 Log[m2], m1 > 0 && m2 > 0]
I get out:
8 log(m1)-8 log(m2)+4
8 log(m1/m2)
So for the second command it combines the logs...