Mathematica Definition and 1000 Threads

  1. C

    Python How much faster is Python than Mathematica?

    I've been running some of my own simulations of a variation on a standard map using Verlet integration on Mathematica, and I would like to start generating maps of phase space using ~25,000 initial points. I'm currently at 1000 points using Mathematica, and each simulation takes about 15 minutes...
  2. G

    Mathematica Plot 3D Mathematica - Graph Not Shown Complete Ubuntu 14.04

    Why if I create a Plot 3D using mathematica 8 the graph is not showed complete unless I hold the graph clicked with the mouse. I'm using Ubuntu 14.04 a weird fact is that in the same computer I have Windows 8 and If I run the program with Windows the graph is shown perfectly. May this question...
  3. C

    Mathematica WolframAlpha miscalculates a simple arithmetic expression

    There is a crucial bug on both WolframAlpha and Mathematica. When we give the input "Floor(sqrt(11.44-10)/0.2)" it gives wrong answer. The actual answer is six (6) but wolframalpha gives five (5). The problem is Wolframalpha calculates 11.44-10 incorrectly. Although the answer is exactly 1.44...
  4. J

    Mathematica Mathematica: unable to format isomorphic expression

    I can't figure out how to format a variable isomorphic expression in Mathematica so that it will look nice. The best I can do will put parentheses around everything and expand powers. For example, given the array ##\{2,4,4,3,3\}##, I'd like Mathematica to write...
  5. Z

    Mathematica and Infinite Series Convergence Tests

    Hey everyone, I'm currently in Calc 2 and the only thing I seem to be having a problem with is a couple of the convergence tests. When I take pretty much any math course, I always use mathematica to help check my answers when I'm doing HW or practicing so I don't waste time. My question is...
  6. V

    Mathematica Calculating Concurrence in Mathematica: Solving 2-Qubit States | Tutorial

    Hi guys! I have an unsolved problem. I'm going to calculate the concurrence for pure 2-qubit states: |Ψ>=a| up up >+b|up down> +c|down up> +d | down down > where up and down stay for uparrow and downarrow. The concurrence is defined as: C = 2|ad-bc|≥0 I have found the vector Ψ3= 1/2 (1,1, cos...
  7. U

    Using mathematica to solve ferris wheel problem

    Homework Statement Consider a large Ferris wheel above a lake. The wheel is 30 meters in radius and its center stands 80 meters above the lake level. At t = 0, a stunt person stands on the top of the Ferris wheel (theta=0) which is rotating at a constant angular velocity w = 0.2 rad/s. At t =...
  8. Y

    Modeling Quadratic Air Resistance in 2-D using Mathematica

    Homework Statement I am working on a little project in which I analyze a video I found online and try to determine if it is real of a hoax. The video I am analyzing includes a man throwing a football off of a football stadium (at the very top) and making it into a basketball hoop at field...
  9. B

    Ferris Wheel Problem using Mathematica

    Consider a large Ferris wheel 30 meters in radius and its center stands 80 meters above lake level. At t = 0, a stunt person stands on the top of the Ferris wheel (theta = 0 degrees) which is rotating at a constant angular velocity w = 0.2 rad/s. At t = 0, a rescue boat is 150 m from the...
  10. N

    Mathematica code for multinomial expansion

    Hello, I m looking for a mathematica code for the multinomial expansion of the general case of (let's say m sum terms given in a power of n), e.g., the code for the 1st equation in http://en.wikipedia.org/wiki/Multinomial_theorem Any help would be useful. Thanks
  11. M

    Mathematica Working with numerical solutions in mathematica

    Hi PF! I have just solved a non-linear ODE numerically in mathematica using the "NDSolve" command over a small interval ##[0,1.5]##. I'd like to be able to fit a polynomial to this solution, perhaps using the "Fit" command, although I've had no luck on my own. Any help is greatly appreciated!
  12. M

    Mathematica Plotting Quadratics and ODE Solutions in Mathematica - A Guide for Beginners

    Hi PF! I am trying to plot several quadratics along with two numerical solutions to some ODE's. The command I entered for the two ODE's is Plot[{{Evaluate[y[x] /. t]}, {Evaluate[y[x] /. s]}}, {x, 0, 1.2}, PlotRange -> All] where s and t have been previously defined. The plot for the...
  13. A

    Mathematica Mathematica problem with plotting

    Hello, I'm trying to plot some functions with different parameters on the same graph. For each one I have to calculate some parameters from a matrix A. I need to plot this for several matrices A, so I'd like to be able to just copy-paste the new elements in the matrix A, rather than writing them...
  14. F

    Mathematica Is anyone familiar with using Atlas 2 for mathematica?

    Is anyone familiar with Atlas 2 for mathematica to calculate the Riemann Tensor, Ricci Tensor, and scalar I have a metric that I need to calculate these things for. Can anyone help? I'm not too up on Mathematica either.
  15. M

    Mathematica Plotting and Finding Values in Mathematica: A Simple Question

    Hi PF! If I'm trying to plot something in mathematica, say ##y=x^2## and then I want to find out what ##y## is when ##x=3##, how would I do this? Thanks so much! I should add, the function I'm inputting in is a numerical solution to a non-linear ODE, so it's not as easy as simply inputting...
  16. majormuss

    Mathematica Using mathematica to arrange data into Bins for plotting

    Hi Everyone, I need to organize a bunch of raw data into bins and their frequency. The data is quite large (about 60000 entries). However I am having a lot of trouble with the right commands. I used the Wolfram documentation center but I still keep getting error messages...
  17. LeoDimieri

    Mathematica Solving ODE numerically in Mathematica - I get 'ndnum' error

    Hello everyone! I'm trying hard to solve numerically a system of coupled differential equations of first order, but I get this error everytime.. I can't find the reason.. maybe you can help me, I'd really apreciate that. This is the code: Jg=0.000043; Kg=0.5; Bg=0.06; Bpm=0.5; r=0.11...
  18. M

    The Cooper pair box Hamiltonian in the matrix form

    Hello, In my problem I need to We are advised to create the Cooper pair box Hamiltonian in a matrix form in the charge basis for charge states from 0 to 5. Here is the Hamiltonian we are given H=E_C(n-n_g)^2 \left|n\right\rangle\left\langle...
  19. K

    Mathematica Mathematica NDSolve initial condition

    Hi, I am trying to use NDSolve in Mathematica to solve a set of differential-algebraic equations: NDSolve[{-6250 f[t] + 0.025 p[t]^2 f[t] + 0.1 f[t]^3 + 3 q[t] f'[t] + f''[t] == 0, 1.5230870989335428*^-35 p[t]^4 + q'[t] == 0, -4.32*^36 q[t]^2 + 10/3 \[Pi]^2 p[t]^4 + 0.0125 p[t]^2...
  20. M

    Mathematica Referring to elements of a table in Mathematica

    See title. I have a table that I've named B. And I want to create table that is essentially the change in values of B. If I was writing this on paper I would say: Let ##b_i \in B##, for ##0\leq i\leq100##. Then let ##c_i \in C## such that ##c_i= b_{i+1}-b_{i}##. I don't know how to say that in...
  21. Safinaz

    Partial decay width in Mathematica

    Hi there, I have a a partial decay width in form of ## \frac{d \Gamma}{d \cos{\theta}~ dq^2} = ## some terms functions in q and ## \theta ## variables. How to integrate this decay width in Mathematica over this two variables ? I tried some thing like j[q_]:= ## \int_{1}^{-1} ## Gam[q, ##...
  22. M

    Mathematica Issue with ListPlot3D Mathematica

    Hi everybody, I am relatively new to Mathematica, so please don't be to harsh on me regarding beginners' mistakes ;-) I wanted to write a script, which evaluates and plots a series of 100 spectra. Therefore I have 100 spectral data files, which provide the spectrum in the first 1340 lines and...
  23. A

    Mathematica Why Does NDSolve Exceed Time Constraints with Second-Order Equations?

    hi everybody i recently used NDSolve for a system with three second-order equations but it says: "NDSolve::ndsdtc: ("\"The time constraint of 1.` seconds was exceeded trying to solve for derivatives, so the system will be treated as a system of differential-algebraic equations. You can use...
  24. J

    Numerically solving system of four PDEs

    Hi Forum, I'm trying to use Mathematica to graphically explore a system of four PDEs, as defined in Yang et al. (2002). Spatial Resonances and Superposition Patterns in a Reaction-Diffusion Model with Interacting Turing Modes. Physical Review Letters 88(20). The equations are: \frac{\partial...
  25. S

    Mathematica Mathematica: Speed up NIntegrate

    I have simplified my problem here, in my actual problem the matrix is much bigger which makes it impossible to find eigenvalues analytically. So, I chose standard BCS problem (2x2 matrix) to demonstrate my problem with Mathematica. But, with even this simple case, it takes forever to integrate...
  26. E

    Mathematica: Compare 3D Graphs with Plot3D Command

    Homework Statement I draw two 3D graphs in Mathematica by using the "Plot3D "and I want to Show the difference between these two graphs. Can anyone tell me what command should I use? Homework EquationsThe Attempt at a Solution
  27. teroenza

    Mathematica Mathematica: Getting part of a list, lithin a loop.

    When I use the code directly below, it works (indicated by the "Out:..."). tmp2 = Flatten[{33, {1, 2 + j, 6}, 55}];(*Out:{33,1,2+j,6,55} *) tmp2[[4]]; (*Out: 6 *) But when I use it inside a loop, it acts like the tmp2 list is not the correct size: For[j = 0, j <= 5, j++, tmp2 = Flatten[{33...
  28. M

    Mathematica Troubleshooting SumConverge in Mathematica

    Hi PF! So in mathematica I am trying to see if a function converges so I type: SumConverge[2/(n*Pi) Exp[-n^2*t] Sin[n x], n] All mathematica does here is echo back what I typed in. Is something I'm doing wrong? Thanks!
  29. Q

    How Can I Extract Function Expressions from a DSolve Solution in Mathematica?

    I have a very simple issue with Mathematica, but I can't seem to find an answer for it. I solved an equation with DSolve, and I got a result as an array of the following type: Solution = { A11 -> Function[ {t} , expression1] , A22 ->Function[ {t}, expression 2] , etc } Now I want to define...
  30. teroenza

    Mathematica Mathematica Globally Define Variable as Real

    I want to write a line of code at the top of my .nb and have Mathematica treat the specified variables as real only. I've tried using "Assumptions" and "Assuming", but it just won't work. I still get back answers where the entire expression is returned inside the Re[ ] command, like it is...
  31. M

    Nonelementary Integral Related Question

    Recently, I have looked into nonelementary integrals and I have a question. When looking at ∫sin(sinx)dx, which I know cannot be represented as an elementary function, I wondered what the function would look like. Using mathematica, I was able to get a graph of f(x)=∫0xsin(sinx)dx. Does the...
  32. Mark Harder

    What are some potential applications of Mathematica in solving physics problems?

    Just joined. I've been slowly working my way through Susskind's Theoretical Minimum books, so I'll be looking for discussions of those and his lectures on the same topics. I have a lot of scientific interests, including fundamental physics, mathematical biology, economic geology, electronics...
  33. MathematicalPhysicist

    Mathematica Undetermined gauges (Help in mathematica)()

    I want to be able to extract from mathematica, an undertermined gauges, like in pertubation theory: $$\delta_0(\epsilon)x_0+\delta_1(\epsilon)x_1+\cdots+\delta_k(\epsilon)x_k $$ And to extract the guages (deltas) and the coefficients (x_i's) from the code, how do you propose me to code this?To...
  34. Q

    Solving a matrix differential equation in Mathematica

    I want to solve a differential equation of the form d/dt (R) = B(t) where R and B are two complex matrices, with time dependent functions as their coefficients. I want to solve these 3x3 differential equations (ones on the diagonal are actually coupled) and to obtain a matrix form for R. So...
  35. L

    Mathematica Division of sequences in Wolfram Mathematica

    How to divide two sequences in Wolfam Mathematica? For example f_n=\frac{1}{n}=1,\frac{1}{2},\frac{1}{3},... and g_n=n^2=1,4,9,... I want to get h_n=1,\frac{1}{8},\frac{1}{27}...=\frac{f_n}{g_n} How to do that in Wolfram Mathematica?
  36. M

    Mathematica Expressing Functions as Sums in Mathematica: Sigma Notation Guide

    Does anyone know how to express a given function as a sum in mathematica using sigma notation? For example, I know how to make ##e^x = 1 + x^2/2 + x^3/6 + x^4/24...## but how would I have mathematica write it as ##e^x = \Sigma_{n=0}^{\infty} x^n/n!##? Thanks a ton!
  37. T

    Ti-89 Limit of Integral undefined BUT it is 4 both by hand and Mathematica

    I am giving the following input to Ti-89 Titanium: limit(S((2 x cos(100 x Pi x t)+2 x sin(10 x Pi x t))2 ,t,-t1,t1)/(2 x t1),t1,inf) where S is the integral symbol, Pi is π = 3.14, x is the multiplication symbol and inf is the infinity symbol The TI-89 answer is undef If I do it by hand it...
  38. B

    Analytical solution for bound state energies of infinite well

    Hi there I am trying to find bound state energies assuming infinite potential. I have been told it can be done by analytically solving Right Hand Side and Left Hand Side of an equation such as: E^1/2 tan(2ma^2E/4hbar)^1/2 = (V0-E)^1/2 If solved properly, it should give one curve (RHS), crossed...
  39. kq6up

    Mathematica Replacing Mass in Equations of Motion: Quick Mathematica Question

    I have equation of motion that our instructor wants to replace one or both of the masses with a negative mass in Mathematica. I tried m1=-m1, but I get an infinite recursion. What is the best way to do this? The equations of motion is a monster, so I don't really want to do this by hand...
  40. T

    MATLAB Is MATLAB's Implementation of Spherical Harmonics Incorrect?

    Hey guys, This is my first post here, so I will apologize in advance in case I'm posting this in the wrong section. I wrote a very simple function to calculate spherical harmonics in matla, and I used this function during 3 years. Yesterday I found that the function was actually wrong, and...
  41. M

    How to Compute Tri-Coherence from Time-Series Data?

    Dear all, I have time-series data, from which I would like to compute the tricoherence. After some googling, it seems that I will have to write my own code. But before I begin, let me ask this. Do anyone here know of a code, library (fortran, c), module (python, matlab, IDL, mathematica)...
  42. J

    Is There a Free Alternative to Mathematica for Complex Calculations?

    I am trying to integrate a very messy expression using Wolfram online integrator but I get the message: "You need to use Mathematica to evaluate this expression". The online integrator works only for relatively simple expressions. Unfortunately I do not have a license for Mathematica. Any...
  43. M

    Maple Math Plotting Software for Electrical Engineering

    Hi All: I am an electrical engineering undergrad. I would like to learn a math plotting software which would be helpful in visualizing topics in advanced calculus (my immediate need). It would also be helpful if the math plotting software was of some use in electrical engineering, but this is...
  44. N

    Software for generating magnetic field within iron

    Dear All, I need to design a magnetized iron calorimeter detector (HEP ex). There will be current coils (in the vertical plane) that will generate x-y magnetic field within iron. Given the detector boundaries and exact locations of the coils (i.e. all the B.C.s), I need to obtain the...
  45. N

    Plotting results from for loop

    Plotting results from "for" loop Hello, I have a problem which it seems I couldn't solve. I have "for" loop which gives results of some calculations as, say, vectors with two coordinates. What I want is to plot the result as a point in the xy plane. This loop goes on and on with the...
  46. Ascendant78

    Useful ipad apps for physics majors?

    At this point, I have about $45 credit in my iTunes account from gift cards given to me for Christmas. I was wondering if there are any useful apps out there that I can get for physics? Whether they are good now for while I am in college, good for work in the field post-college, or both. For...
  47. H

    How can I solve my differential equation with Mathematica?

    Hi, I can't quite figure out what I'm doing wrong here. I tried restarting mathematica as well which is what fixed my previous problem Clear[eqn, soln, u, x, y] eqn = D[u[x, y], {x, 2}] + D[u[x, y], {y, 2}] == 0; soln = NDSolve[{eqn, u[x, 0] == Sin[x], u[0, y] == 0, u[1, y] == 0}, u[x...
  48. V

    MATLAB Maximizing the fraction of two integrals using matlab

    EDIT: I left out something of major importance, I want to maximize with respect to a! Good day, I've run into an issue in solving a certain problem with matlab, and I was hoping if anyone could help me out. I am relatively new to matlab, so I don't even know if this is possible, but I...
  49. G

    Mathematica Can You Integrate a Function of Two Variables in Mathematica?

    I have a function of two variables F[x_,y_] and I Would like to integrate over one variable only and get a function G[x] for example and work with it. I want something like: G[x_]:=NIntegrate[F[x,y],{y,0,\infty}] But it doesn't work.
  50. G

    Mathematica Plot 3D in Mathematica: Getting Coordinates for Points

    I have a 3D Plot in Mathematica and I would like to get coordinates for points (all points) that were plotted.
Back
Top