# All Questions

126 views

### Can't edit MSPConfiguration.xml file and set Licence file in webMathematica

I have been working in Mathematica 9.0 for last 6 months. Now in our organization we got webMathematica. We don't know how to install webMathematica initially, with the help of this link ...
400 views

### Plotting solutions to Solve results

I am trying to plot a solution to a Solve result, ie I have a function f(x,y) and I want to plot y=y(x) for when f(x,y) = 0.06366. Here is what I am trying to do ...
1k views

### Switching the axis of a plot [duplicate]

I have a plot but the x and y axis need to be switched. The problem is that I can't explicitly solve for the other so I can change the axis. ...
187 views

### Pattern match with Table for matrix dimension check

In Mathematica, often an expression involving matrices will encounter dimension mismatch errors, like we are multiplying a 3x2 matrix to a 3x4 matrix. Below we define a new symbol Dim, which can be ...
275 views

### How to define a pure function with a Module?

I was not able to use a self defined (using Module and For loops) piecewise function to fit data. It seems that the problem is that I have to define a pure function. I would like to learn how to ...
101 views

### Can I create a CDF from Mathematica 7?

I am almost sure I remember seeing an online tool on the Wolframs website for creating CDF's for Mathematica users with version 7. Am I right? And if so, where can I find it?
245 views

### Choosing min/max values of transcendental equation

With help from here, I have succeeded in plotting the equation z = -a Log[2 Cosh[(2 f[x] + x)/a]], with f[x] being defined by ...
201 views

### How to solve this simple equation?

I want to minimize a quadratic equation, but Mathematica does not solve it and only rewrites the solution. I wonder if there exist any way I can skip the computation by hand (I can solve it using ...
476 views

### Common tangent to a curve

I need to find out the x and y coordinates of the points where the common tangent touches the curve. How can I do this ? Thanks a lot in advance. Data points: ...
131 views

### Numerical solution of Schrödinger-type equation in Mathematica [duplicate]

I want to solve the following differential equation numerically: $$i\partial_{t}\psi(r,t)=\left[-\frac{\Delta}{2m}+g\left|\psi(r,t)\right|^{2}+V_{d}(r,t)\right]\psi(r,t)$$ ...
3k views

161 views

### Plotting a family of contour plots [duplicate]

How can I plot the following equation with $k$ assumed to be an integer"? I tried something like this, but it doesn't work: ...
238 views

### Why does a translation in the horizontal direction affect PointSize?

I'm running Mathematica 9.0.1 under Mac OSX. Not sure if this is a bug or whether I'm not supposed to apply a GeometricTransformation to a list containing graphic ...
88 views

### How to calculate solution for each variable automatically

Here I have one problem how to calculate x for each y. In this form code doesn't work ...
2k views

### Solve and plot an equation that is dependent on a transcendental equation

I am trying to plot a function that uses the values of a transcendental equation as its input values: y = Tanh[(2 y + x)/2.5] z = 2.5 * Log[2*Cosh[(2 y + x)/2.5]] ...
489 views

### using array elements in minimization

I have switched from mupad to Mathematica, however the syntax is completely different here. I want to ...
552 views

### rule-based implementation of an algorithm

When I first started learning about rule-based programming with Mathematica, I tried to translate this algorithm for computing the convex hull of a set of 2-D points in $O(n \log(n))$ time, to use ...
160 views

### How to get path and file name of a pasted image?

Say in Documentation Center -> ImageData -> EXAMPLES -> Basic Examples you find an image of a planetary body (Mars?). Can one obtain the file source for this image wich is copied into a Mathematica ...
346 views

### Plotting geodesics of upper half plane

I want to solve (numerically) the geodesics of the upper half plane and plot. The results are quite known (i) straight lines parallel to $y$-axis and (ii) semicircles centered on the $x$-axis. Now the ...
176 views

### Why changing list's head takes time?

Consider AbsoluteTiming[Range[10^7];][[1]] 0.035000 and AbsoluteTiming[HoldComplete @@ Range[10^7];][[1]] ...
665 views

### Recursive Integration

I'd like to evaluate the following recursive integration using Mathematica $$\ M(T) = \int_0^T\int_0^\infty e^{-\delta s}g(x,s)dxds\ +\int_0^T e^{-\delta s}f(s)M(T-s)ds\,$$ where $g(x,s)$ and ...
69 views

### Optimizing List Multiplications

I've got a list manipulation optimization problem. Consider a two-dimensional nxm list list1, and a three-dimensional nxmxm list, ...
900 views

### Inverse of a polynomial in a polynomial ring

Let $N$ be a prime, and $q$ be a positive integer. Given a polynomial $f(x)$ in $R = \mathbb Z[x]/(x^N-1)$, I want to find another polynomial $f_q(x)$ in $R_q = \mathbb Z_q[x]/(x^N-1)$, such that ...
81 views

### Why do I have to perform a second ReplaceAll in this InterpolatingFunction?

I have an InterpolatingFunction that I'd like to plot, and I wonder why I have to perform a ReplaceAll on the following function: ...
663 views

### How to declare a 3D vector variable?

How can I do vector calculations without telling Mathematica the vector entries? I have very many arbitrary linear combinations in $\mathbb{R}^3$ which I want to perform some general calculations on ...
218 views

### AstronomicalData and Planetary Heliocentric (x,y,z) Velocity Components

I'm trying to find data on the heliocentric velocities of planets in our solar system and was directed to Mathematica's AstronomicalData in a previous topic. ...
337 views

### Forecasting future Stock Prices II

I intend to do the following: I want to forecast future stock price under the following assumptions: The stock price is governed by the stochastic differential equation: dS = μSdt + σSdWt whereas ...
1k views

### How to calculate the volume of a convex hull?

Given a spatial curve represented by a parametric equation, is it possible in Mathematica 9 to calculate symbolically (or at least numerically) the volume of its convex hull?
402 views

### How does Mathematica calculate the nth prime?

When I enter Prime[2000000000000], the two-trillionth prime, Mathematica gives 61427839512211 for the answer after several ...
155 views

### Improving the plotting time of a very complicated expression

The quatity $R$ is defined by a complicated expression in terms of $a_1,a_2,\ldots,a_n$. Now each $a_i$ is a function of $x$, $a_i(x)$. I would like to know what is the most efficient way to ...
606 views

### A simple ListPlot with different colours and a Tooltip

I know that the threads ListPlot with each point a different color and a legend bar and Extracting the coordinate of a particular point of interest from a ListPlot are somehow the answers to my ...
155 views

### how to set initial conditions when solving recursive equation with tables

I am solving a recursive expression with ParallelTable. Here is a MWE showing how I do it, and how I set the initial condition: ...
45 views

### Using anonymous functions instead of module or block. Bad idea? [duplicate]

Here is an example function which returns True if a point p is on an (open) line segment (A, B) assuming that Orientation[A, p, B] returns 0 if the three points are collinear: ...
829 views

### Inverting a Spline-Function (Bezier or BSpline)

I would like to use a Spline-Function to describe a transformation from one range of reals to another, that is I would like to have a function which maps a value $y$ on $x$ and for simplicity let us ...
240 views

### Distribute and analyze large datasets

I need to analyze very large datasets, and they obviously don't fit in a computer memory. I need to produce some statistics on these datasets, and this brings me here: How can I make some statistical ...
214 views

### Default FontFamily for PlotLabel

This is probably a rather basic question and I presume I am simply unable to make proper use of the Options[] function: I am trying to figure out what the default ...
464 views

### Constraining solution's sign with NSolve

I am solving some equations in 4 variables, however, there are many solutions which are basically the same but changing relative signs of each other ... i.e. {x->-1,y->1} and {x->1,y->-1}. ...
439 views

### How to open hyperlinks (from web-embedded CDF) in a new tab

I have a problem with Hyperlink (in a web-embedded CDF) opening links in the same browser tab and I couldn't find an option to avoid that. I have the following ...
533 views

### How can i get the solution of complicated equation?

This is the equation about zeta. NSolve[eq] could not solve this equation. (I think it is too complex to solve by NSolve.) I ...
3k views

### “Save Graphic As…” does not include plot legends

I am creating some plots with Show but unfortunately the PlotLegends seems to be out of the bounding box when saving the graph. ...
14k views

### Finding all simple paths between two vertices in a graph

There are built-in methods to find a shortest path between two vertices in a graph, and the question on finding all shortest paths between two vertices has gathered quite a bit of attention. A path ...
189 views

### How can I set multiple values to local variables in a Module?

Multiple assignment is supported by Set. How can do something similar in Module expressions? If I could do it, whould there be ...
900 views

### Can I use GoogleMap or other GPS data in creation of the Graphs?

I have following graph. ...
270 views

### What does InternalInheritedBlock do?

What does the function InternalInheritedBlock do? How is it different from the regular Block?