Homework Statement
Alright I searched all over Mathematica on Google and I can't find the answer.
How do you write out a vector equation and then do a bunch fancy stuff to it? (Like if it was a parametric surface or line, how do you graph it? Find the derivative? Integrate it?)
For...
hello, i just want to ask if mathematica 7 can solve nonlinear second order partial differential equations. i tried solving it with DSolve but it kept on giving me the question back as the output...please is there any way or syntax for solving it on mathematica 7?...thanks for any suggestions.
i want to put this equation in mathematica to have derivative
i always have error
please tell me how to write it in mathematica to get the derivative
also to solve the equation
i attache the equation in word file
Homework Statement
I've been trying to plot
Plot[x^2/4 - ln[x]/2, {x, 0, 5}]
And it keeps showing me a blank graph. I did it on Wolframalpha and it worked.
\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 from...
Homework Statement
I am trying to plot xe^{-x} by using Plot[x*e^(-x), {x, 0, 5}] and it keeps telling me that
Plot::exclul: must be a list of equalities or real-valued functions.
So I tried
Plot[x*e^(-x), {x, 0, 5}, PlotRange -> {-10, 10}]
Still not working
The Attempt...
Hi everyone,
I have these warning solving summation:
*************************************************
In[1]: f[m_, n_] := 2 n + 3 m;
In[2]: g[m_, n_] := Sum[f[m, n], {m, 1, m, 2}, {n, n, 1}];
In[3]: g[1, 1]
During evaluation of In[3]:= Sum::itraw: Raw object 1 cannot be used as an...
I am trying to calculate the ionization curve for hydrogen at a given matter density (in this case it happens to be 55 atoms/cm^3)
From the Saha equation and putting the concentrations in terms of reaction coordinates. It looks something like this:
Log[x[t]^2/(1 - x[t])] = 1/(k t)E - 3/2...
I've had this problem many times in the past, and haven't thought of a way to fix it.
Sometimes when I plot a function that requires quite a bit of effort on mathematica's part, (for example, one time the function was a sum of about a thousand terms, each of which was multiplied complex terms...
Hi All, running into a bit of a mathematica issue. I put the following code into plot:
Plot[Im[correlationList], {t, 0, timeEnd},
PlotStyle -> ColorList]
correlationList is a list of complex functions that have been evaluated at t. It correctly plots all of them (if I change it to...
Hi all,
I have 3 lists of data where lists; A={numbers}, B={numbers} and C={{y,m,d,h,m,s},{...}} (i.e. C is in the form DateList).
I have no problem plotting using DateListPlot for the 2D case (C VS A) but can't seem to plot all 3 sets of data together.
Mathematica seems not to be able...
Hey, I have a data set (electronic device output) which we need to find the best fit via approximation and interpolation. I've done a cubic least squares, then found the local error for all the given points (actual - approximate). We need to also find the global errors for the methods we choose...
Homework Statement
I am trying to plot the two polar curves r = \sqrt{3} cos(\theta) and r = sin(\theta)
Mathematica only gives me one of the curves.
I tried plotting PolarPlot[{sqrt (3) Cos[t]}, {t, 0, 2 Pi}] and it gives me a blank box in the first quadrant.
any ideas?
Hello all,
I'll try to make myself clear... My goal here is to plot a function f(x,y) in 3D. But, instead of using the Plot3D[] function, I made a table of Plot[] for, say, several values of the x variable.
So I'm now with a list which looks like this ...
Maybe someone else had this problem.
Lets say we have a sampled Gaussian pulse in time domain and transform it into frequency domain. For that I use the discrete Fourier transform. Now the resulting set of transformed values is made up of complex numbers. I want to extract two things from that...
Issues with Discrete Fourier Transform in Mathematica
Maybe someone else had this problem.
Lets say we have a sampled Gaussian pulse in time domain and transform it into frequency domain. For that I use the discrete Fourier transform. Now the resulting set of transformed values is made up of...
Hi,
Iam looking for a specific command(s) that could give outputs which are determinate only, i.e. only and only if the outputs are not infinity.
This is due to the fact that I have iterations cases (using Do-loop) which give both determinate and indeterminate outputs. However, I just...
I want to plot a list of points where each element is of the form {x,y,z} so that the list is like:
{ {x1,y1,z1} , {x2,y2,z2} , ... , {xN,yN,zN} }.
And I want to connect a line between each consectutive pair (i.e. {x(i-1),y(i-1),z(i-1)} & {x(i),y(i),z(i)} ).
Unfortunately, its not as...
Hi!
It's been like two days since I have tried to make this work, still I got nothing. Searched Google etc. but no help there.
I have a three dimensional matrix in form of {{a,b,c}, {d,e,f}, {g,h,i}, ... etc. } with a total of 51 elements, i.e. 51x3 matrix.
What I want is to plot it as...
Hi all,
I'd like to plot a family of curves corresponding to different values of an integer n (eg. sin(nx) for n=1,2,3...) on a single graph, along with some kind of indication as to what value of n each curve corresponds to. I'm using the command
Plot[Evaluate@Table[Abs[P[-t, n]], {n, 3...
Hi all,
I have difficulties about applying the Do-loop command as it takes very long time to run (more than 24 hours and it keeps running).
However, if i do it manually, without Do command, i.e. putting the values of the variables, Mathematica gives me a pretty quick output.
Please see...
I am trying to solve the following system of 2n variables:
w1 + w2 + ... + wn = b0
w1x1 + w2x2 + ... + wnxn = b1
w1x12 + w2x22 + ... + wnxn2 = b2
...
w1x12n-1 + w2x22n-1 + ... + wnxn2n-1 = b2n-1
for w1, w2 ... wn and x1, x2 ... xn.
The problem is the using the Solve command returns...
Hi All!
I am trying to get used to Mathematica and rules and all things syntax. What I am trying t do is this:
If I define a variable as such
m = Solve[x^4 - 4 == 0, x]
The output is:
{{x -> -Sqrt[2]}, {x -> -I Sqrt[2]}, {x -> I Sqrt[2]}, {x -> Sqrt[2]}}
So I believe what this means...
Hi All,
I have a big ugly function (please see the attached Mathematica file), of tau (f(tau)). The only parameters there in symbolic form are w and v. I need to take the derivative of this function with respect to tau, set it equal to zero and solve for tau. (Please see g(tau)). But Solve...
Hi All,
I'm trying to plot some DiscreteDelta functions in mathematica but unfortunately since the points are singular nothing shows up in the plot.
Usually when this comes up I replace the delta functions with very narrow gaussians, graphically it looks even nicer (I'm plotting absorption...
Hello,
I'm working on a simple electronic circuit with two resistors and two diodes.
I have experimental data of the current-voltage characteristic and am trying to fit the corresponding equation - the resistors and diodes are unknown.
With basic circuit analysis, I get this tricky...
I'm trying to use a random number generator in Mathematica that uses a distribution. I know there's a specific command to do so but I'm a bit confused on how to use it. In my example I'm trying to get random numbers from the wrapped Cauchy and Von Mises distributions. Any help would be great...
Hello :smile: I am a total amateur here and can't seem to get this to work: I have a function beta[M, θ] that I am trying to define. beta is a nasty equation that is way too many lines for me to input at once, so I tried to break it up into pieces. However, the part that is showing up in red...
I have a function f(x,y) that I wish to evaluate for different values of x and y.
I created two lists for x and y using table:
x = Table[x,{x,1/10,1,1/10}]
y = Table[y,{y,1/100,1/10,1/100}]
This gives me 10 values for x and 10 for y.
Now I want to evaluate my function f(x,y) for...
Hey
I have Mathematica 8 and I'm wondering if FeynArts and FormCalc are already installed or I have to install them from somewhere else? If the first how I can get it?
Many thanks in advance
I am trying to input the equation of motion for a pendulum:
θ1'' = −g (2 m1 + m2) sin θ1 − m2 g sin(θ1 − 2 θ2) − 2 sin(θ1 − θ2) m2 (θ2'2 L2 + θ1'2 L1 cos(θ1 − θ2))
L1 (2 m1 + m2 − m2 cos(2 θ1 − 2 θ2))
with θ2 and θ2'2 being the only unknowns but I am not getting the results that are...
Hi,
I faced a problem (in Mathematica) when trying to plot a partial
derivative of a functiona (of two variables) obatined by "Interpolation".
More precisely, here is my input:
surf=Interpolation[{
{{160.0, 160.0}, 2.852688},
{{160.0, 170.0}, 2.827547},
{{160.0, 180.0}, 2.818931}...
Hi All,
I have some simple Mathematica commands:
f[x_]=x^2+3*x-1
Plot[f[x],{x,0,10}]
Now, I need to "rescale" the horizontal axis of the resulting graph, so that number 25 is added to its value (i.e., the horizontal axis would take the starting value 25 (in place of 0) and 35 (in...
Hi All,
does anyone know of a mathematica function that efficiently circularly shifts all array elements?
e.g.
{1,2,3,4,5} -> {4,5,1,2,3}
without iterating? The reason I ask is because I have a huge data set I'm working with and right now iterating through is very processing intensive...
Hi,
I have a question about fitting in Mathematica.I have a function like this:
F=T*Y^(0.5) T is temperature but Y obtained from this coupled equation 1-u*Y=u(1-u/Y^.4)^.5*Y
I have T and F from experimental data.so I want to obtain u from fitting.
could you please advise me how can I do it...
Hi,
I have a question about fitting in Mathematica.I have a function like this:
F=T*Y^(0.5) T is temperature but Y obtained from this coupled equation 1-u*Y=u(1-u/Y^.4)^.5*Y
I have T and F from experimental data.so I want to obtain u from fitting.
could you please advise me how can I do it...
I'm having trouble getting data into mathematica.
I have a text file will a list with members separated by returns (enters) that I want to import as an array. I tried:
Import["data.txt", "Table"]
Import["data.dat", "Table"]
Import["data.txt"]
Import["data.dat"]
All of which failed to...
All,
I am having trouble plotting nested lists.
I have two data sets (A and B), both with dimensions 5x50.
So far I have
plot = Map[
ListPlot[#, PlotRange -> {0, Max[A]},
AxesOrigin -> {0, 0}, Frame -> True,
FrameLabel -> {"position", "Intensity"}] &, A];
which...
I am very new with Mathematica and I need help writing a program that generates a Farey Sequence.
Farey[n] := ?
The result should appear as follows, for those values of N.
Farey[1] = {0/1,1/1}
Farey[2] = {0/1,1/2,1/1}
Farey[3] = {0/1,1/3,1/2,2/3,1/1}
Farey[4] =...
Hi,
I'm trying to import multiple files into Mathematica. Each file is a 2d matrix and I would like to import multiple files into a nested list. So far I have something that only allows me to load a single file.
In:= SetDirectory["/directory"];
In:= filenames = FileNames[]
Out:=...
Here is an overview of Farey sequences; http://mathworld.wolfram.com/FareySequence.html"
I need to write a program in Mathematica 8, FareySequence[n_], that takes a positive integer n and returns, as a list, the nth Farey sequence.
So far I have,
Module[{denleft, denright, f, i, j, k...
Homework Statement
I am creating a program to help me analyze a quantum system. I am having a problem creating a large function that I can pass 6 initial values to and get the result out (IT).
I am new to this language but have been asked to code in it.
Homework Equations
I am...
I need some help writing a Farey Sequence in Mathematica, so far this is all I have:
FareySequence[n_] := GCD[a, b]; While b : a, b = b, a % b;
result := a
Simplify[a, b];
g := GCD[a, b]
result := (a/g, b/g)
I am very new to programming, please help!
Hi everyone,
Please help me to rectify my problem using Mathematica. I got this difficulty on the very last code i.e, solving the simultaneous equation and Do summation process.The remaining codes are all working nicely.
As you can see in the attached file, Iam using only variables m = 1...
Homework Statement
I am trying to construct a Mathematica notebook that will be able to import sound in the form of a .wmv file and then create the frequency spectrum for a given time interval.
Homework Equations
I managed to complete this part, though I am trying to figure out:
a)...
The Farey sequence F_n (F subscript n) for any positive integer n is the set of irreducible rational numbers a/b with 0<(or equal to)a<(or equal to)b<(or equal to) n and (a,b)=1 arranged in increasing order. The first one should be:
F_1 = {0/1,1/1}
F_2 = {0/1,1/2,1/1}
F_3 =...
If I have :
(1 \[PlusMinus] 5) * 5
I want it to read
5 \[PlusMinus] 25
Does anyone know how to get it to evaluate those?
Then get to expand multiple terms with plus minuses in them, and ultimately get a min and max of the value. Such as :
(a +- b)(c+-d)/(e+-f)
where all...
Hi all,
How to convert the root of an equation from symbolic form into an ordinary from? I have tried to use the N command, but still displaying in the symbolic form.
Thanks