For questions concerning the popular computational software program published by Wolfram Research. (Note: you are more likely to get quicker and more accurate response if you ask the question on their user forum or on the Mathematica StackExchange site.)

learn more… | top users | synonyms

-2
votes
0answers
17 views

Showing Legend in Wolfram Mathematica [on hold]

Below shows Wolfram Mathematica code which shows 5 Weibull distribution plots along with its histogram. As you can see, I have assigned colour to each Weibull curve in the Weibull distribution plot. ...
0
votes
1answer
32 views

Basic Number Theory in Mathematica [on hold]

I am able to solve basic modular equations using Wolfram alpha. Like: Solve a*(a-b) mod 96=36, a*q mod 96=24, b*q mod 96=39 However I can not solve the same ...
0
votes
0answers
11 views

Getting a part of a matrix in mathematica

I was trying to get an element of a matrix, and use in further computation of my program. Problem was that its not reading the value unless and until I specify it again. My code is: ...
0
votes
0answers
15 views

Newton Raphson method to optimize two parameters using mathematica [on hold]

Am working on computational Thermal engg. work. For the optimization i have been using Mathematica Software. I got a expression "G" which I deduced in mathematica itself. But when I tried to find the ...
6
votes
3answers
170 views

A numerical evaluation of $\sum_{n=1}^{\infty}(-1)^{\frac{n(n+1)}{2}}\frac1{n!}\int_0^1(x)_n dx$

I would like to obtain a numerical evaluation of the series $$S=\sum_{n=1}^{\infty}(-1)^{\frac{n(n+1)}{2}}\frac1{n!}\int_0^1x(x+1)\cdots(x+n-1)\: dx$$ to five significant digits. I've used ...
0
votes
0answers
5 views

Defining solutions to FindRoot as a function of parameters in Mathematica [migrated]

This works: f[a_] := x /. FindRoot[x^2 - a == 0, {x, 1}] f[3] Out[38]= 1.73205 I need this to work, but it doesn't: y = x^2 - a == 0 g[a_] := x /. FindRoot[y == 0, {x, 1}] g[3] Out[45]= -a + x^2 == ...
1
vote
1answer
52 views

Inverse gradient as line integral in Mathematica

I found a nice paper about inverse vector operators here. I have successfully defined a Mathematica function for inverse curl and inverse divergence, however I can't figure out how to do inverse ...
1
vote
1answer
55 views

How does Matlab, Maple, etc…solve algebraic and differential equations internally?

I would be very interested finding out how does Matlab, Maple, etc…solve algebraic and differential equations internally? Anyone know how they do it?
4
votes
2answers
92 views

How to actually use the Weierstrass-Enneper parameterization to draw a minimal surface?

I'm interested in drawing (with Mathematica for example) the generalized Scherk saddle tower with threefold symmetry, a shape that I find very attractive. In an article (see here) I found the ...
3
votes
0answers
27 views

The mathematics of anaglyph images

Note: I'm not quite sure whether this question properly belongs to the Mathematica or to the mathematics Stack Exchange. But because my question mainly concerns general mathematical principles rather ...
-10
votes
2answers
100 views

Converting Mathematica code to matlab code [closed]

I need a program to converting a long Mathematica code to matlab code because Matlab running very very very faster than Mathematica. I tested matlab.m library for Mathematica but don't work good.
0
votes
1answer
40 views

Minimizing a function in Mathematica

Edit: I simplified the function using $\textbf{Simplify[...]}$ How can I minimize this function of $x$, where $l$ is a positive constant? $$\frac{1}{2} \sqrt{\frac{x}{l}+\frac{l}{x}+4 x^2-2}$$ ...
2
votes
1answer
64 views

I can't solve this integral in Mathematica

I want to calculate the following integral in Mathematica 10 $$f(x) = ...
0
votes
0answers
28 views

Pade_Approximant in Mathematica

I want to calculate Pade_Approximant for exponential function in power of 3. I wrote this code but it seems that the answer isn't true. please help me In[131]:= PadeApproximant[Exp[x^3], {x, 0, {3, ...
1
vote
1answer
54 views

Torricelli's Law with a Sphere (Ignore Mathematica part, already solved)

Edit 1: According to this PDF, second page. The differential equation for a hemisphere becomes $$(r^2h-h^2) h' = -a^2\sqrt{2gh}$$ This differs from the equation I got, which looks like: ...
0
votes
0answers
13 views

Proving susceptibility in Lorentz Model satisy Kramers-Kronig relations

My instructor asked me to prove that the real and imaginary parts of the electric susceptibility derived from Lorentz Model satisfy the Kramers-Kronig relations using the residue theorem. The problem ...
0
votes
0answers
23 views

Simplifying expressions or expressing it in more known functions

In mathematica I asked FullSimplify[ DSolve[{y''[x] + 1/x y'[x] + y[x] (1 - 1/x^2) == x BesselJ[1, x]}, y[x], x]] and it gave as the answer {{y[x] -> BesselJ[1, x] C[1] + ...
0
votes
0answers
29 views

Ritz Approximation

I have the following problem: $1/r * d/dr(r*d \theta/dr) - N_1(\theta-\theta_a)^2 -N_2(\theta^4-\theta_a~^4)=0$ where $N_1, N_2,$ and $\theta_a$ are constants Subject to $r=1$ : $\theta=1$ $r=L$ ...
0
votes
0answers
26 views

Fifth order BVP using Daftardar Jafari method-Research paper example query?

Please check the research paper regarding numerical solution of non linear 5th and 6th order BVP using Daftardar Jafari Method (section 6: numerical results, example 1) ...
0
votes
0answers
29 views

Derivative with respect to a tensor in Mathematica

I am trying to differentiate a tensor with respect to another one in Mathematica but I cannot do it. Could anyone please help? The following is the code: ...
0
votes
0answers
10 views

Assign a symbolic tensor with determinant greater than zero in Mathematica

I can create a symbolic tensor in Mathematica: $Assumptions = F \[Element] Arrays[{3, 3}, Reals] Is there anyway that I can tell Mathematica, that the ...
1
vote
1answer
29 views

Scaling axis on Mathematica's plots

I'm trying to get the plot below only I want the ratio y:x to be 1:1 instead of 2:1. I want the ellipse to look tall and slim instead of short and fat. Here's the code line if you want to copy and ...
1
vote
1answer
36 views

How do I plot normal distribution

If I know the range (1-24) and know the area (X), how can I plot a normal distribution so that the curve has area X?
2
votes
1answer
20 views

Generating a data set that approximates another given random variable

One of the question my friend was asked in technical interview : The probability density function for a normal random variable with μ = 0.6 and σ = 0.7:​ Below is the code to generate the ...
1
vote
1answer
29 views

Expected number of passengers for the flight

One of the interview questions that I was asked was : The small commuter plane has 30 seats. The probability that any particular passenger will not show up for a flight is 0.1, independent of ...
1
vote
2answers
49 views

How to plot a phase potrait of a system of ODEs (in Mathematica)

I am asked to use mathematica to plot the fixed-points of the following system $$ \frac{dN}{dt} = -\gamma N \left( 1 - \left( \beta M + N\right) \right) $$ $$\frac{dM}{dt} = M \left( 1 - \left( ...
0
votes
1answer
22 views

Exponential Distribution - Generate a fairly hefty data set X that is approximately exponentially distributed with μ = 0.7.

I encountered a question in one of the books, which asked to generate a fairly hefty data set X that is approximately exponentially distributed with μ = 0.7. I can do it for approximately normally ...
1
vote
0answers
37 views

ODE with Reflection

Some Background: I come from a computer science background and differential equations was not part of my course work. I'm still in contact with my professor that I ...
0
votes
1answer
75 views

how to substitute a variable by a number in wolframalpha

Peace be upon you, How can I compute \begin{align*} sin'(0) \end{align*} in Wolframalpha? like what in Maple, I try subs(diff(sin(x),x),x=0) But it doesn't ...
1
vote
0answers
16 views

Determining the sign of a function containing ratio

Problem We want to know for which values of $x,y,z,w$ the function $\sigma$ is positive or negative: \begin{equation} \sigma = \frac{A}{A^2-B^2}, \end{equation} where \begin{eqnarray} A & = ...
0
votes
1answer
22 views

Mathematica Cubic Polynomial

I am interested to find the roots of a cubic polynomial f(r)=r^2 - 2 r + Q^2 - [Alpha] r^3. \Alpha is positive real number hare, Q is real. I am interested in 2 complex roots and third root to be ...
1
vote
1answer
42 views

Analytical solution for bound state energies of infinite well

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: ...
3
votes
1answer
70 views

Integration: $\frac{2}{\pi} \int_0^\pi \frac{\sin(nx)}{10}x(\pi-x) \mathrm{d}x$ Can someone matlab/mathematica/maple it for me?

I want to compute $\frac{2}{\pi} \int_0^\pi \frac{\sin(nx)}{10}x(\pi-x) \mathrm{d}x$, where $n=1,2,3,4,\dots$ I worked this by hand and got the result: $-\frac{4\cos(nx)}{10n^3\pi}$ To check my ...
1
vote
1answer
69 views

Mathematica Question regarding NSolve

I'm trying to solve for 2-cycles for the equation $$x=xe^{r[1-x]}$$ using Mathematica. I've tried using NSolve, FindRoot, and Solve. When I use NSolve I input it as $$\textrm{NSolve}[xe^{r[1 - xe^{r[1 ...
0
votes
0answers
32 views

Plotting Dirichlet Series $L_{\tau}(s)$ related to Ramanujan tau function in Mathematica

According to wikipedia, Ramanujan tau function $\tau:\mathbb{N}\to\mathbb{Z}$ is defined by equating the coefficients of the power series on both sides of the identity: ...
0
votes
0answers
12 views

Introduce break after operation

I have made a function to select manually feature points in two images. However I can keep clicking endless because I don't have a limit for feature points. I now want to introduce a kind of button on ...
1
vote
1answer
64 views

Mathematica Giving Me Trouble

I'm new to mathematica and am just learning the basics. I've run into a few things that I can't figure out. The first is this: "Number 11" $$r[t\_] := \{(1/3)*(t^3), 0.5 * t^2, t\}$$ (*Unit ...
1
vote
1answer
29 views

In Mathematica is it possible to define the plot range by an inequality?

For example, like Plot[Sin[x], {x, Sin[x]<0.5}] The above line is not working. I want to know if this idea is possible in Mathematica. Thank you!
0
votes
1answer
59 views

Best program for multiplying many multivariable polynomials

I want to make a table with two columns: The first column will consist of many(possibly hundreds) of polynomials in two variables. The second column will be a function applied to all of the ...
2
votes
0answers
62 views

Algorithm to find the “optimal” path in a given graph

Assume that $G=(V,E)$ is an undirected connected graph and that $H: V \to \mathbb R$ is a function that assign at each vertex $v \in V$ its height $H(v)$. Think of the pair $(G,H)$ as an energy ...
1
vote
0answers
17 views

Assigning a variable as constant and find out the minimum value

I have got a problem in assigning a variable as constant and solving a equations for minimum value. These are my equations: kd (2 h2 Cos[[Theta]2] - b2 Sin[[Theta]2]) (b1 - (b1 + b2) ...
2
votes
1answer
61 views

contour plot using Mathematica

I want do a contour plot in Mathematica as: ContourPlot[{Re[F[5/4, x + I y]] == 0, Im[F[5/4, x + I y]] == 0}, {x, -20, 20}, {y, -20, 20}, PlotPoints -> 100]; where function F[b,z] is defined ...
0
votes
1answer
42 views

Help with Complicated Definite Integral

I am trying to find the integral of the following expression, with respect to $t$ from $0$ to infinity: $$\frac{e^{-a g t} \left(b-(g-1) \left(\text{H0} \left(e^{a t (-b+g- ...
1
vote
0answers
23 views

Is there any interactive spline fitting software?

I'd like to know if there's any software (freeware) for interactive data interpolation. What I want is to be able to visualize my data on an XY plot and drag the points to see how it affects the ...
0
votes
1answer
30 views

Trying to calculate 5 simultanious equations in Mathematica

$\def\1{x_1}\def\2{x_2}\def\3{x_3}\def\f{f(\1,\2,\3)}\def\bs{\bigskip}\def\b{\begin{pmatrix}}\def\e{ ...
1
vote
1answer
59 views

Why is a complex number plus infinity equal to infinity?

Why is $$2 + 3 i + \infty = \infty$$ according to Mathematica and Wolfram Alpha? Shouldn't it be: $$2 + 3 i + \infty = \infty + 3 i$$ ? After all: $$2 + 3 i + 10 = 12 + 3 i$$ and not: $$2 + 3 i ...
1
vote
0answers
22 views

Computer Code Friendly Books On Differential Equations?

When I need a differential equation for this or that application I generally search (by hand) through old paper and ink books written by mechanical or electronical (electrical) engineers. Sometimes my ...
1
vote
0answers
95 views

SAGE vs. Mathematica for Lie algebras / groups?

What math software is better for working with Lie algebras and Lie groups, SAGE or Mathematica?
0
votes
0answers
50 views

Finding circle which touches two functions

I wasn't sure whether my issue is with my Mathematica code or the actual way I am trying to figure out my problem so if it is a Mathematica issue I can ask it on that stack exchange. Firstly I have ...
0
votes
0answers
36 views

traingular matrix

I am not much in to the matrices. so I am sorry if I can not put forward the question properly. Assume $G_{n\times n}$ is a rank $n$ matrix (Indeed $G$ is the generator matrix of a lattice). I need ...