3
votes
2answers
70 views

Error control for NDSolve

I have a problem controlling the numerical error associated with the following non-linear ODE : ...
8
votes
2answers
67 views

Using Merge[Identity] and Transpose on a Dataset

While experimenting with this answer, I ran across the following: ...
0
votes
0answers
34 views

Adding a legend to ListContourPlot [duplicate]

I am struggling to add a legend to my plots. I am using ListContourPlot and my data is ASiAufrontZnO, which is an array of data with three columns ...
0
votes
2answers
77 views

Easy way to add another parameter to Manipulate

Vector definitions: I'm sorry that I didn't include the Vector definitions. I forgot because I had them in initialization cells. Here they are: ...
5
votes
3answers
72 views

Output code not highlighted when used as input

I have reported this issue: [CASE:3389542] Today, I accidentally found what I believe is an unwanted feature of the front-end, where input code is not appropriately highlighted and the dynamic ...
-1
votes
1answer
58 views

ParametricPlot not plotting the results I'm getting from NDSolve

I try to plot a phase diagram with ParametricPlot but everytime Mathematica does nothing. I start by ; ...
1
vote
0answers
44 views

How to remove parts of an expression

I have an expression where terms Transpose[R].R appear. R is a matrix with the property Transpose[R].R=IdentityMatrix[3]. How ...
3
votes
2answers
72 views

Coloring network edges by weight using GraphPlot

Following up on a previous question about how to color the nodes (vertices) of a network (graph) according to a color scaling of a property of those nodes, I'm now asking basically the same thing ...
7
votes
4answers
228 views

Improving a selection routine

How can this code for extracting the smallest (absolute) real value be improved? and would it be simpler using associations? ...
8
votes
1answer
84 views

How to test if file exists on the front end machine?

When using a remote Mathematica kernel, how can you test if a file exists on the local front end machine? Of course FileExistsQ cannot be used in this scenario, ...
14
votes
0answers
137 views

Undocumented fourth parameter of Collect; how long has it been there?

While tinkering with How to get a list of monomials of a polynomial without coefficients? on a whim I tried a fourth argument in Collect and found: ...
5
votes
1answer
98 views

Distribute transpose on matrix multiplication

I need to do the following: Transpose[A.(B+C)]=Transpose[B].Transpose[A]+Transpose[C].Transpose[A] How should I do this in mathematica? So far mathematica does ...
0
votes
0answers
54 views

Expectation value with Mathematica code

I need to evaluate the evolution in time $t$ of expectation value of the operator $\rho$ on the state represented by the wave packet $\Psi(\beta_{+},\beta_{-},\rho,t) = \int\int_{reg} dk_{+}dk_{-} ...
1
vote
0answers
21 views

Auto resize content or new slide to fix slides “AspectRatio”?

WRI says there' "no easy way" to control aspect ratio of slides in slideshows, even though everything is an expression and there's ~200 kinds of Box. In other ...
0
votes
1answer
51 views

how to simplify -1 to shared power (produced by Solve)

I want a real solution to look real. But this solution does not: ...
0
votes
0answers
79 views

Nasty nested Integrals

I would like to solve following integrals by Mathematica ...
1
vote
1answer
176 views

Something wrong with FromDigits?

NestList[RotateLeft, IntegerDigits[19], 1] FromDigits[%] (* WRONG *) ...
1
vote
0answers
35 views

Use of MuPad code into mathematica [duplicate]

Does somebody have experiences so as to transform a MuPad code into a notebook into mathematica ? I would like to export equations written in Mupad to Mathematica. Thank you for your help
6
votes
1answer
39 views

How can I specify position of ContourLabel? [duplicate]

Consider the ContourLabeled plot: ...
4
votes
3answers
263 views

How to get a list of monomials of a polynomial without coefficients?

Giving a polynomial, say a x^2 + b x y + c y^2 MonomialList[a x^2 + b x y + c y^2, {x, y}] just gives ...
6
votes
1answer
204 views

Mathematica ignores image orientation

I have a bunch of mixed images, some portrait orientation, some landscape, which I want to be processed by Mathematica. When I Import them Mathematica handles them ...
3
votes
0answers
31 views

How to create permanent intra-notebook links

I'm trying to create a documentation notebook for a package and have entries which reference other entries. I'd like to include the hyperlinks in text formatted cells so that when a reader clicks on ...
4
votes
0answers
42 views

When I run multiple Mathematica programs from terminal, are they supposed to use different Kernel?

Since I found that when I using notebook interface, I need to assign different kernels to different notebooks (if I want to run them at the same time), I wonder if I run those *.m files from terminal ...
1
vote
0answers
33 views

How does Matematica compute the CDF of the binomial distribution?

I want to know, how Mathematica actually implements the cumulative distribution function of the binomial distribution. Which algorithm does Mathematica use to compute ...
4
votes
1answer
47 views

DelaunayMesh in a specified closed region

I have a list of discrete points wich I want to use as nodes for creating a 2D mesh. I used DelaunayMesh and it works fine. The problem that I have is that some elements/polygons are outside of the ...
0
votes
0answers
66 views

Solving a series of non-homogeneous differential equations

I have the following system of differential equations $$\rho1(t) = {(c1-\lambda(t))\over 2k1} $$ $$\dot\lambda(t)={\beta \lambda(t)-{(c1-\lambda(t))^2\over 4k1}}$$ and $$\rho2(t) = {(c2-x(t))\over ...
0
votes
0answers
4 views

What is X if position value is between 0 and 500 and I need it has -1 to 1? [migrated]

let's say I have a line from 0 to 500, and I'd like to know in which position a point is from -1 to 1, where centre is 250, how can I do that ? Any suggestions ? Thanks! So far this is what I've ...
0
votes
1answer
58 views

Using subscripted symbols in functions

Using subscripts would significantly improve the structure of my code. Until now I used the following two lines to implement this. ...
7
votes
2answers
124 views

Inserting symbols' definitions during read time of the code

Let's say we've got a package: ...
8
votes
2answers
99 views

How to sort arguments of Times in nonstandard order?

Is there an elegant way to sort the arguments of Times in e.g. TraditionalForm so that factors go to the front and state ...
-2
votes
3answers
64 views

Formatting Tables in Mathematica [closed]

Ok, I created a table Table[j, {i, 4}, {j, 3}] // TableForm and the result is fine, from 1-4 in each column. Now, what if I wanted to extend this table into ...
1
vote
0answers
81 views

How to obtain the magnetic field of the following set up [closed]

This is the experimental set up: A ferromagnetic cylindrical disk (of irrelevant dimensions) has either sides set at different electric potentials (left side at 0 volts and right side at 1 volt). A ...
10
votes
2answers
182 views

Extract bathymetry data from a map

Thanks everybody for edit and recommend. Here is a clearer version of my question. I have a map that shows bathymetry of a lake with legend showing depth relative to a range of color. The map ...
-3
votes
1answer
60 views

Loading CSV file is slow

I'm trying to import a CSV file that contains the latitude and longitude of some USA routes, but the import process is very slow and Mathematica spent about 10 min importing it. A link to the file ...
8
votes
1answer
107 views
+100

Accessing figure style (oldstyle or lining) of TrueType fonts

Most professional fonts come with at least two figure styles: old style (or text) figures and lining figures. In plots and most other figures I prefer to use lining figures. This is no problem with ...
0
votes
0answers
57 views

Formally invert a $C^\infty$ diffeomorphism

I'm having a problem with a calculation. Starting with $f: \mathbb R^2 \to \mathbb R^2$ having an invertible gradient, I want to compute $\nabla^2(g \circ f^{-1})$. While I know $f$ and $\nabla f$ ...
6
votes
1answer
96 views

How to Negate a Pattern Test and Transform a List of Strings to a JSON array

First I would like to find out how to negate a pattern and based on this I would like to solve this little problem on how to transform a list of strings to a JSON array. This is how I started working ...
2
votes
0answers
58 views

Scoping all symbols

After working Mathematica for a couple weeks to write a larger program, beyond doing integrals, I am starting to gain an appreciation for the Wolfram Language. There are a couple issues that drive me ...
2
votes
1answer
42 views

Limit problem calculating directional derivative

Given $f(x,y)=1-x^2-y^2$, find the directional derivative at the point $(x_0,y_0)$ in the direction of the unit vector $\vec u$. I am experiencing some strange behavior with the Limit function. I ...
3
votes
0answers
73 views

StreamPlot of potential flow from a finite element calculation

I am trying to calculate a potential flow past a thick plate. The finite element calculation seems to go well but I am finding it difficult to get a nice plot of the flow. The stages below are, ...
3
votes
0answers
31 views

Analytical Fourier Transforms with convolution rule [closed]

The task is the following, how to extend Mathematica's FourierTransform command in order to be able to analytically deal with non-linear differential equations. To do so it should be able to deal with ...
1
vote
1answer
26 views

How align Table column on decimal point yet use text styling?

Form a table such as: data = Transpose[{Range[0, 5], RandomReal[{-5, 5}, 6]}]; Display it by wrapping with TableForm. Is ...
1
vote
0answers
59 views

URLFetch Problem with the Size of HTTP Message Body

I am trying to transmit this string as an HTTP Message BODY ...
0
votes
1answer
96 views

Functions as objects [duplicate]

I have a very long program I'm trying to stuff express as a single function. (I'll include it at the bottom of my post.) My long-term goal is to trim out the file handling portion of this function, ...
-1
votes
2answers
66 views

Delete Element within a List based on the Order [closed]

I want to do the following, deleting the element of a list that do not match an increasing order as example: {1,2,3,4,6,5,7,8}->{1,2,3,4,6,7,8} I've thought of using DeleteCases but I'm not able to ...
1
vote
0answers
78 views

Possible bug with Manipulate [duplicate]

Bug introduced in 10.1.0 and fixed in 10.2.0 I am observing a potential bug not present in MMA 10.0.1.0 on Win 7 Ultimate, but observable on MMA 10.1 on Win 7 Enterprise. It seems to work with ...
1
vote
2answers
42 views

DiscreteMarkovProcess: labelling of states

Related, but it seems like the respondents there misunderstood the question. The following errors as DiscreteMarkovProcess::invsm: ...
4
votes
0answers
69 views

How do I programatically set up an NDSolve with lots of equations?

I'd like to set up... NDSolve[x1'[t]==2,x1[0]==0, x2'[t]==2,x2[0]==0, x3'[t]==2,x3[0]==0, x4'[t]==2,x4[0]==0, x5'[t]==2,x5[0]==0, ... etc Can I somehow use ...
3
votes
1answer
70 views

Solve problem: Inconsistent or redundant transcendental equation

I would like to mechanically Solve[a y == (1 - a) x && u0 == x^a y^(1 - a),{x,y}], given 1>a>0 and u0>0. The emphasis is on mechanically: I know it is ...
2
votes
3answers
71 views

Initial value producing an error in a dynamic display

I have ...

15 30 50 per page