What is Mathematica: Definition and 1000 Discussions

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.

View More On Wikipedia.org
  1. H

    Mathematica Mathematica NDSolve conditions help

    Hi, I'm having a problem with NDSolve in mathematica where it is interpreting my initial conditions as "True" or "False". Here is the code: soln = NDSolve[{eqn1[[1]], eqn1[[2]], x[0] == y[0] == 0, x'[0] == 1, y'[0] == 0}, {x, y}, t]; where eqn1 is determined by the following code...
  2. Safinaz

    Mathematica Mathematica ListPlot: Plotting a Continuous Graph

    Hi all, I have a function varying in mass varible as 1000 - 1500-2000, etc, I made a list of the values of this function for these values of mass but when I plot by mathimatica by ListPlot it appears some how discerte between the points I defind not a continus graph. So any help to...
  3. D

    Mathematica Mathematica: Simplifying a feedback system

    Hi, I have given a complex feedback system in z domain like: Y = 2*W2 + E W2 = z^-1/(1-z^-1) * (W1 + (1-z^-1)*W2 - 1/2*(1-z^-1)*Y) W1 = V - Y + z^-1/(1-z^-1) * 1/2 * (V - Y) where Y is the system output, V is the system input, W1 and W2 are intermediate nodes and E is an error input...
  4. N

    Mathematica Solving an algebraic-integral equation in Mathematica

    Hi, I'm trying to solve an algebraic-integral equation (I don't know if this is the proper description of this class of equations, it just seems like the least wrong way to describe them) and have run into several issues that I'll describe below, but first I'll outline the problem. I'm...
  5. A

    Mathematica Help with Mathematica Issue: Solving Nonlinear Second Order ODE

    Mathematica Issue -- Help! Hello! I am new to Mathematica and i tried to solve a non linear second order ode... The result is that nothing happens... I mean that i get as output the same line as i write in input.. For example, my problem is: (thats what i get) In[33]:= DSolve[ g - b x - c...
  6. Hepth

    Mathematica Mathematica Bug : Integrate and DiracDelta

    I have found that while these two should be the same, mathematica does not evaluate them equally. Integrate[(a + b el + c el^2) DiracDelta[u], {u, 0, 1}, {el, e1, e2}] Integrate[ Integrate[(a + b el + c el^2) DiracDelta[u], {el, e1, e2}], {u, 0, 1}] I believe the second one is correct...
  7. M

    Mathematica Mathematica: Generate Surface Equation

    Hi there, I just began using Mathematica today and I was wondering if there is a way to make the program generate an equation of a surface given a 3d array? What I need it to do is to give me an equation of the surface so that given any two variables I can find the value of the third one...
  8. E

    Mathematica Use DO loop in Plot order at mathematica 8

    Can anyone help me to in this problem? I want to use DO loop in Plot order at mathematica 8, how can I do this? I want to change one variables and see the changes in other variables in the graph, and want to plot all of my graph in one Plot order. Like this. I Uploaded my file too.
  9. F

    Mathematica Help with Mathematica? Find Dictionary Lengths & Longest Words

    Part A: Get the list of pairs of the form {language,number of words in dictionary}. Call this list Alength. What I did: lang = DictionaryLookup[All] to get all the languages. Then, Alength = {Length[DictionaryLookup[{"Finnish", All}]], Length[DictionaryLookup[{"Arabic", All}]]}...}...
  10. admbmb

    Finding Shortest Distance between two 3d Parametrized Curves

    So I have two parametrized equations for two different 3d curves: Rm(t) = (1.2*sin(2πt) + 0:3)i + t4j + 1.1cos2(2π(t + 0:2))k and R(t) = Sin(2πt)i + t3j + Cos2(2πt)k I need to figure out if these two curves come within a certain distance of each other (0.5). I cannot understand how to find...
  11. G

    What is causing the NMinimize error in my Mathematica calculation?

    What wrong with my calculation.the problem is from the attachment. It keeps saying: NMinimize::nnum: "The function value {10721.1} is not a number at {rs,x} = {1.91862,1.66351}. " My code: XDDO154[x_, rs_] := Sum[(DDO154vobs[[i]] - Sqrt[(4 Pi*(43.040600502)*x*...
  12. S

    Mathematica: Illustrate a 3D vector field

    Homework Statement Hi, Firstly, let me apologize if this is not exactly the right topic to ask this questions. But since it is homework and since most of the Physicists for sure illustrate a 3D vector field, I decided to post it here. Attached I have two files with 3D vectors. How does...
  13. J

    Poincaré Sections of the double pendulum with Mathematica

    I need to plot a Poincaré map for a double pendulum where the string connecting one mass to the other is elastic with elasticity constant k and rest length s. The equations of motions are: \dot{\theta}_1= \frac{p_{\theta_1}}{m_1 r_1^2} - \frac{p_{\theta_2}}{m_1 r_1 r_2} \cos{(\theta _1-...
  14. Q

    Mathematica 5.0 notebook does not work in Mathematica 9.0

    1. I have managed to find the following notebook that would prove useful for me in calculating the concurrence of a 2-qubit state. http://library.wolfram.com/infocenter/MathSource/6227/ 2. The problem is that the code is for Mathematica 5.0, and try as I may, I could not make it...
  15. adjacent

    [Mathematica] Multiples of 5 from 0 to 100

    I have downloaded Mathematica to see if it is really that good. Many people use it. I want to calculate the multiples of 5 from 0 to 100. This seems pretty simple but I can't figure out a way to do it. I can't use the Modulo % in mathematica. I know that I should use Table. Is there any...
  16. Q

    Switching the position of matrix elements in Mathematica

    Say I have the following matrix, written in Mathematica A := {{a11, a12, a13, a14}, {a21, a22, a23, a24}, {a31, a32, a33, a34}, {a41, a42, a43, a44}} I want to exchange the positions of a12 and a21, a14 and a23, a32 and a41 , a34 and a43. Any ideas? Thanks.
  17. ChrisVer

    Evaluating Integral with Mathematica: A & B Cases

    Could someone please help me evaluate the integral with mathematica \int \frac{dx}{(a(1+x^{-1})+b(1+x^{2})-1)^{1/2}} For better in your code the integral must be: 1/sqrt[a(1+(1/x))+b(1+x^(2))-1] For a≤1 and for cases: A)0<b<1 B)b>1 I am sorry,but I haven't been able to receive mathematica...
  18. E

    Graphing Infinite Series (Mathematica)

    Homework Statement I just have to graph this function to see where the "Gibbs phenomenon" occurs in its Fourier Series representation. I am pretty sure I integrated correctly.Homework Equations Fourier Series The Attempt at a Solution...
  19. Q

    Defining variables in mathematica

    I need to define some "general" variables in Mathematica 8, and I wonder if this can be done the following way. Say ta[n] and tb[m] are my variables, in turn depending on n and m. I want to define a function, for example E[ta[n]_ , tb[m]_ ] := Cos[ ta[n] ] + Sin [tb[m] ] (just a simple...
  20. T

    Need Help Solving Problems in Mathematica

    How do I graph f(x)=x^5-x & g(x)=2 on the same x-y system and zoom into find the crossing points of these 2 functions? how do I find the terminal velocity(t->infinity) and find 98% of its terminal velocity? 1st step. take the derivative v=24.61(1-(0.27300^t) then I graph it. but how to...
  21. Q

    Mathematica indices as variables

    1. I'll post here a simplified version of my problem Say you have a matrix A, and you want all its components to be functions, for example: A11 = Sin(a_n) A12 = Cos(a_n) A21 = Sin(b_n) A22 = Cos(b_n) And I want to be able to do this in mathematica so as to have the matrix A a...
  22. R

    What are the unknown functions and variables in this Mathematica program?

    Hello Mr Bill, Sorry again If I distrubed you ,but i really need your help in solving my Mathematica program , I wrote the explanation of my job in the PDF in details ,may that help you to understand what Iam looking for ,and thank you again of your help.
  23. C

    Kramers kronig in mathematica

    I am having trouble with one of my simulation of normal reflectance experiment. so I simulated my reflectivity as a lorentzian peak and I want to find the dielectric function ultimately. so of course the reflectivity and phase is related through kramers kronig which can then be used to...
  24. R

    Help with Mathematica Problem Solving

    Hello,I have a problem in writing my code in Mathematica, when I put values of R,T,S&a the system worked and gave me result but when I put the system in for loop , it gave me errors,I hope someone help me and thank you
  25. T

    Plotting with Mathematica or Wolframalpha

    Apologies if this is readily available, but I can't seem to find an example of it. How do I go about plotting multiple functions on the same graph? It keeps splitting my functions up into separate graphs. Nothing complicated, just something like two planes intersecting.
  26. H

    [Wolfram Mathematica] - how scripts work in Mathematica

    [Wolfram Mathematica] -- how scripts work in Mathematica Hi. This is not a homework. I just did a script in Octave and I've just finished writing it on Wolfram Mathematica. The problem is that I don't know how to define the function, I don't know how scripts work in Mathematica. My script...
  27. S

    Plotting Complex functions in Mathematica

    In a few of my books on Complex variables they show how you can look at a complex function as essentially a mapping from what plane to another. Does anyone know if there would be a way to have mathematica plot how a complex function would transform one plane into the other? Thanks for any...
  28. N

    Plot the plane x+z=0 in mathematica

    How do I plot the plane x+z=0 in mathematica on the xyz plane
  29. H

    [Wolfram Mathematica] Using Newton's method to solve non-linear system

    Hi. This is not actually not part of the homework; but it's something I'd like to do. I have to solve the following system using Newton-Raphson's method: $$\begin{matrix} \frac{X}{\mu }+Y=1 \\ X=\left( \lambda -\left( K-1 \right)X \right)Y \\ \end{matrix}$$ Surfing the...
  30. R

    Mathematica Help with Mathematica: Solve Firstresult Problem

    Hello, I want somebody help me in Mathematica My code that I wrote most of it is right ,the two first function are correct ( templet & Bisection)but the problem I faced when I wrote the function (firstresult) when I wrote in it the for loop and the if conditions the errors start to appear so...
  31. R

    How to call a built function in mathematica

    Hello,I need somebody to help me in Mathematica programm I wrote code that works as a function which I can call when I need in another function, but it did not work ,so I need help how to call my function and thanks in advance
  32. R

    I have problem with mathematica

    Hello, I need someone to help me with mathematica my aim in the code I wrote is to find the value of "w" with fixed values of "a" and "z" which makes the determante det =0 so I need bisection method to find the value of w ,then I thought to use FindRoot function but it did not work. So how to...
  33. T

    Magnetic field from a coil (on Mathematica)

    Hello guys, I'm trying to find the configuration of two circular coils in a configuration similar to Helmholtz coils that would homogenize the magnetic field best at a volume between them. So the first thing step I took in that is use the Biot-Savart law to calculate the magnetic field...
  34. S

    Finding Non-trivial solutions to ODE in Mathematica

    For an ODE of order 2 like: X'' + λ*X = 0, how do I find the non-trivial solution in Mathematica 8? It's giving me only the trivial solution. In: ComplexExpand [DSolve[{u''[x] + \[Lambda]^2 u[x] == 0, u[0] == 0, u[a] == 0}, u[x], x]] and the out: u[x]--> 0 which is the trivial soln...
  35. moudas

    Sigularity problem in NDSolve in mathematica

    sigularity problem in "NDSolve" in mathematica Hi, I am trying to solve numerically 13 differential equations with intial boundary conditions in mathematica. In my case, the boundary conditions are not free parameters and those are constrained from experimental observations. But these set...
  36. M

    Mathematica Mathematica derivation Question

    I'm trying to work through a derivation and am getting some funny results. For example, when trying to compare some expressions, Mathematica was telling me they weren't equal, and when I worked them out by hand, I new they were equal. I then tried something like this: ExpandAll[x] ===...
  37. Sneakatone

    How to make a mathematica code with vectors and magnitude

    Homework Statement Create a mathematica code to add arbitrary number of 3 dimensional vectors. 1. n: the number of vectors which must be added 2. For each input vector, the code should accept the following: a. Length of the vector b. Three angles which the vector makes with x, y, and z...
  38. Q

    Mathematica Problem in reporting contour plot mathematica

    Dear friends I plot a Contour plot from a function with mathematica, but I don't know how can I add a small box near my figure that explain which value refer to which color? I put my code below, please help me with adding colordata to my code for having reference for colors. t = 0.01...
  39. C

    Mathematica Mathematica- filling to y-axis

    Filling->Axis command makes vertical lines to the x-axis. How can I make same thing for the y-axis? (Horizontal lines to the y-axis)
  40. R

    Mathematica I have a problem with mathematica

    I wrote this programm in mathematica but I had some errors that I could not solved I hope that anybody could help me For [a = 0, a <= 30, a = a + 10, For[z = 3.7, z <= 5, z = z + 0.2, For[w = 1000, w <= 20000, w = w + 1000, {m = NDSolve[{Derivative[1][y1][t] == y2[t]...
  41. Safinaz

    Mathematica - how to simplify an output formula

    Mathematica -- how to simplify an output formula Hi all, Is there any more options to simplify an out put Mathematica formula. I used //Simplify but the expression still complicated and //FullSimplify too slow and didn't work. Bests, Safinaz
  42. M

    Mathematica Using 2 color functions in a mathematica matrix plot

    I'm trying to use 2 color functions within one matrix plot in mathematica. Is this possible to do? For example, using a very simple matrix: test = Partition[Table[i, {i, 1, 9}], 3] I would like to make the even numbers vary in color increasing from white to red; and the odd numbers vary...
  43. 8

    Mathematica Mathematica, Plot Implicit function contain Sum (sigma)

    Dear friends, Over the past week, I tried to plot implicit function by mathematica but failed. I am very disappointed. Hopefully someone help me at this time. My equation is given by (see below figure): Where z0 := 6 d := 12 k := 11800 w0 := 0.025 w[z_] := sqrt[w0^2*(1 + (z/z0)^2)]...
  44. J

    Mathematica Mathematica: Trouble accurately integrating highly-nonlinear DE

    Hi, I'd like to numerically solve the IVP: x^2 y y''+2x y y'+2 y^2+xy'-x^2 y^3-(x y')^2-y=0,\quad y(x_0)=1,y'(x_0)=0 around the unit circle, x=e^{it}. When I attempt to solve it around the entire circle, I think the integration is veering of course. I believe the solution is single-valued...
  45. G

    Is mathematica wrong about this integral?

    When I type in this integral into Mathematica: $$\int_1^\infty \int_1^\infty \frac{dxdy}{(x+y^2)^2}$$ using a large number like 1020 instead of ∞, Mathematica gives me 0.785398. No matter what large number I use, Mathematica always gives me around that value. However, doing the integral by...
  46. A

    Mathematica How Can I Fix My Mathematica Animation Code for Propagator Integration?

    Hello! I need some help in Mathematica, because I'm newbie in using this program. I've a kernel for a propagator, what i want to integrate numerically by p (because the problem hasn't got analitical solution) to receive the propagator. Next i want to use that propagator for an initial...
  47. N

    Mathematica Solving trig equation Mathematica repeats results

    I am new to Mathematica and I'm not sure if I'm using it properly but sometimes the output doesn't make sense to me. I Hope someone can help me understand or correct my usage. When solving trig equations Mathematica's Solve[] function gives the correct list of solutions but some of the...
  48. M

    Mathematica Mathematica calling module from NDSolve

    Hi, I want to use a module to repeatedly calculate a parameter in NDSolve, but I seem to be having trouble. Here is a simplified version of what I'm doing. In this example, I want to use the difference between v1 and v2 at a given timepoint to calculate the connection between v1 and v2 for...
  49. stripes

    Creating the trapezoidal rule in Mathematica

    Homework Statement I am to design a small piece of code in Mathematica that takes in four parameters, a number z, the number of intervals n, the starting point, and the ending point. We are basically integrate a function of the form: f(x)=(z+1)x^{z} so we don't change the function at...
  50. stripes

    Use Mathematica and Kirchhoff's rules to find V out.

    Homework Statement Find V out by determining three equations with three unknowns. Use Mathematica to solve the system to find V out. See image for details Homework Equations -- The Attempt at a Solution Here is my code: \text{eq1}=v-i_3*(2r)-i_3*r-i_3*(2r)...
Back
Top