All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
218 views

Good Introduction / Tutorial to Mathematica **Books** [duplicate]

Possible Duplicate: Where can I find examples of good Mathematica programming practice? I'm a high school senior and am using Mathematica for a research project. However, I find it a bit slow to ...
0
votes
2answers
412 views

Lagrange multipliers code runs forever

I am writing a code for a Lagrange multipliers problem with three variables. My code looks like this: ...
0
votes
1answer
158 views

How to exchange interpolating function results of NDSolve between different platforms?

For example, I have a interpolating function solution by NDSolve in a windows x64 platform and want to share the result to users in other windows x86. I tried the DumpSave and ".mx" binary format, ...
0
votes
1answer
49 views

Why is this Mathematica code unable to solve for the real parameter set?

I tried using Bill's code for obtaining the parameters $\theta, \phi$ and $\lambda$ for the unitary $$Z=\begin{pmatrix}\frac{1}{\sqrt 2} & \frac{i}{\sqrt 2} \\ \frac{i}{\sqrt 2} & \frac{1}{\...
0
votes
1answer
191 views

How to solve the integro differential equations with matrix

I have integro-differential equations like $X'(t)=\operatorname{diag}(\int_0^t X(t) dt)AX(t)-X(t)$, where $A$ is a known $N\times N$ matrix and $X$ is a $N\times 1$ vector, and $\operatorname{diag}$...
0
votes
2answers
780 views

Hide function arguments (from unknown functions) for simpler output [duplicate]

How can I print my expression with my function's arguments hidden? For example: exp=A[r,z]+B[s]^2; HideArgs[exp] Output: ...
0
votes
0answers
172 views

Reducing a statement with Mathematica, step by step [duplicate]

Possible Duplicate: Get a “step by step” evaluation in Mathematica I have a list of inequalities combined with quantifiers. And Mathematica is able to reduce to simple statement with the ...
0
votes
1answer
100 views

Given a sequence of expressions, how can I convert them all into functions?

I have a sequence of expressions 1, x, x^2, ..., x^5 I want to define a sequence of functions out of it, what should I do? Namely I want to define a vector of ...
0
votes
0answers
324 views

NDSolve a system of one PDE coupled with an ODE

I would like to solve a partial differential equation where one of the boundary conditions is the solution of an ordinary differential equation that is coupled to the partial differential equation. ...
0
votes
1answer
306 views

How to delete duplicate solutions of this system of equations?

I want to find vertices (has integer coordinates) of the triangle $ABC$ with the centorid is $G(1,1)$ and orthocenter is $H(3,3)$. I tried ...
0
votes
2answers
66 views

Plotting issues with n-root function

I've been getting issues with plotting a function I've written to calculate the maximum height a floating body can float in a polytrope atmosphere dependant on a weight, here is the function; ...
0
votes
0answers
414 views

Automatic import of Maple expressions into Mathematica using MathML

I'm would like to automate a process so as to convert Maple expression into Mathematica expression. For the moment, thanks to the function ...
0
votes
1answer
135 views

Use separate options for different elements in Show

I have a few plots of different type. plot1 has gridlines and the rest do not. I use the option Method -> {"GridLinesInFront" -> True}] when plotting plot1. When I use Show to combine the plots the ...
0
votes
0answers
42 views

How to transfer the list of parameters values into With [duplicate]

In the following case: With[{x=1,y=2},Print[x+y]] the values of x and y are declared in ...
0
votes
1answer
844 views

Combine Plots into a single non-rasterized Graphic with no spacing [duplicate]

Suppose that I have two plots, pl1 and pl2: ...
0
votes
1answer
77 views

Plotting the outer region contour

I have the following code ContourPlot[((11 - j*l)/-j^2)^0.5, {l, 0, 10}, {j, 0, 10}] which generates: How can I color the outer region of curves instead of ...
0
votes
1answer
53 views

parametricNDSolve for solving differential equation

i want to solve this equation and plot it solution w.r.t N2 and theta(0) theta''[x] + 2*theta'[x] - Exp[-2*x]*(N2)^2*(theta[x] - 5) + Q1 == 0 anyone please help
0
votes
2answers
315 views

trouble with Dynamic range in SetterBar

It appears that I can set the range to a Dynamic variable in a Manipulate control, but not in a ...
0
votes
1answer
285 views

Mathematica won't solve: $(H-T)^x-(L+T)^x=x*c/p$

I'm trying to solve the equation: ((H-T)^x-(L+T)^x)/x==c/p for T. I've tried working with Solve and Reduce and I've also tried restricting the solution to Real ...
0
votes
1answer
137 views

Resulting list of ComponentMeasurements

I detect a single bright object in an image with the following code; ...
0
votes
1answer
132 views

looping in mathematica for using the current value as initial state of next value [closed]

i have some initial state $psi[x,t]$. I perform some operation on it and store the value in another state $pi1[x,t]$. Now on the next step i have to use $psi1[x,t]$ as initial state and perform the ...
0
votes
1answer
36 views

Tracking back a variable corresponding to an output

I have a function: ...
0
votes
1answer
82 views

How to build one data from other data ListLinePlot

I want to build: ListLinePlot[{en, v1} // Transpose] I want: but the third plot is a problem: ...
0
votes
1answer
529 views

Plot table versus table [duplicate]

I have two tables like: nex1 = Table[l3*10^3/4*10^14, {l3, 1, 30, 1}]; nex2= Table[l4, {l4, 1, 30, 1}]; How can I plot nex1 versus nex2 so that nex1 is x axis ...
0
votes
1answer
153 views

import from Excel adds a point to each number …How to get rid of it? [duplicate]

I import an excel file ...
0
votes
0answers
214 views

Clearing out a package

I'm just beginning with packages, so this is definitely a beginner's question. Suppose that I do this in a notebook: ...
0
votes
1answer
92 views

Increasing the speed of sparse array

I am trying to find a sparse matrix of the size Col x Rows = 16777216 x 1024 where all the elements are 0 except the ones given ...
0
votes
1answer
91 views

Determining where in x-z plane, $f(z,t,x)$ is negative for all values of $0<t<\pi$

I want to mark regions in $z - x$ plane in which, a know function,$f(x,z,t)$, is negative for all values of $0<t<\pi$. How can I do that? I don't want to plot $f$ in $3D$. Could anyone help me? ...
0
votes
2answers
327 views

Michaelis–Menten kinetics using Gillespie Algorithm

I am trying to implement Michaelis–Menten kinetics using Gillespie Algorithm. $$\text{Reaction 1:}\quad E+S\rightarrow C$$ $$\text{Reaction 2:}\quad C\rightarrow E+S$$ $$\text{Reaction 1:}\quad C\...
0
votes
2answers
157 views

Strange behavior of Plot over a domain containing very large x-values

When I plot a function of (1 + 1/n)^n,There you can see: Plot[{(1 + 1/n)^n, E}, {n, 1, 10^13}] When I add a option of ...
0
votes
1answer
145 views

NIntegrate failling on floating value

I'm trying to take the following integral NIntegrate[ ((Sin[Q 1]-Q 1*Cos[Q 1])/(Q 1)^3)^2 * S[Q,0.4,2] * Q BesselJ[0,0.5Q] , {Q,0,Infinity}] ...
0
votes
0answers
204 views

Simplify closed formula for distance-preserving great circle spherical coordinate parametrization

Short version: can the function paramLonLat defined below be simplified given the conditions conds below? Note that the return ...
0
votes
0answers
46 views

Possible bug of Exporting as HTMLFragment at Linux

This is the result of Mathematica 10.0.2 of Linux Version. There are two style inside one tag, and this fragment cannot be Imported as XML by Mathematica. This is the result of Mathematica 10.1 of ...
0
votes
0answers
52 views

Applying a function to the second element of a list [duplicate]

I'm trying to apply a simple function to the second element of a list: {#1, #2/5} &@{1, 2} But this returns an error message. ...
0
votes
0answers
61 views

Numerically integrating a highly oscillatory multi-dimensional Bessel function with good precision

This is a follow up question to Numerically integrating a highly oscillatory Bessel function with good precision. Now I am considering a three dimensional integral, ...
0
votes
0answers
58 views

Perform a constrained integration over $[-1,1]^6--yielding a “separability probability”

To begin with, I have a set of three positivity constraints (ensuring the positivity of a certain (twelve-parameter) $6 \times 6$ "density matrix", denoted in the standard manner as $\rho$, namely, <...
0
votes
2answers
343 views

Edit plot after creation [duplicate]

I try to find a way to manipulate a plot I created before. (for full code take the fuction x[t_]:=Sin[2t] ) Let's say I have a plot: ...
0
votes
3answers
169 views

How to fit the curve that this lines made? The length of lines are all fixed

but how to deduce it ? Thank you .
0
votes
1answer
1k views

Plotting the tangent of a curve [duplicate]

I'm new to Mathematica and this is probably child's play for most people, but I wanted to know how to plot the tangent of the function below at the point e=1/4 : <...
0
votes
1answer
244 views

4-dimensional Lotka-Volterra plot

I was referring to the question I posted earlier in Mathematics forum, but then I came to see this example on Wikipedia. How did they plot the system in phase space? The closet relevant topic I have ...
0
votes
0answers
38 views

Why here does Import[file] produce an error LinkOpen::linke:? [duplicate]

In the folder $BaseDirectory\\Kernel I have a file init.m, who calls a customized initialization package ...
0
votes
0answers
25 views

Create `Table` where each line is a function of the line before [duplicate]

I've been noodling around with primitive Pythagorean triples. One of the 'branches' of the ternary tree that generates all possible PPTs from the initial parent PPT ...
0
votes
1answer
112 views

How to solve 2D PDE with a constraint?

As related to the 2D+1 PDE problem, if now I would like to solve the stationary solution which satisfies $\partial_t u(t,x,y)=0$. Or equivalently, $-y\partial_{x}u+\partial_{y}\left[a y+b sin(x)u+...
0
votes
2answers
312 views

Accuracy and WorkingPrecision

Observe that ...
0
votes
0answers
43 views

customisable error checking, message handling code

I have an iterated computation running in a while loop, which is bound to fail at some point, at which point I want it to stop, e.g. ...
0
votes
2answers
377 views

Output of matrix in FortranForm

matr2 = Table[FortranForm[matr[[i, j]]], {i, 4}, {j, 6}] but i want output to be more like this matrix(1,1)=a11 output in ...
0
votes
2answers
550 views

How can I fit a differential equation to experimental data?

I would like to add a fit to the following data. Here is the differential equation I am using. g=9.81 l=0.2 m=0.09 ...
0
votes
1answer
129 views

Custom Ticks for Image3D?

Is it possible to make user-defined ticks in an Image3D? (Wizardly solutions will be appreciated, too.) With ...
0
votes
1answer
165 views

Inverse of a multivalued function

I try to get the inverse of a simple function like x^2,x≥0. Still, when I use InverseFunction Mathematica gives me back -(y^0.5) ...
0
votes
1answer
71 views

Model for log-inear data

I am trying to fit the following data with y axis on a log scale. I used the following model to fit the data but without success. Can anyone help me suggest a proper model? ...

15 30 50 per page