0
votes
0answers
4 views

Trouble exporting graphics to SVG (or PNG)

I'm trying to export a Graphics object to SVG (or, failing that, PNG). The graphic is a chart of ~1000 simple geometric "configurations"; below is a small excerpt ...
2
votes
0answers
10 views

KaryTree of Text .csv and Correlation

How can I make a KaryTree of the following example data: ...
0
votes
0answers
24 views

Mathematica gravatar engine?

This question asks about making gravatars in Mathematica, but the accepted answer is just a wrapper around the gravatar.com service. Is there an open source Mathematica engine that performs the ...
1
vote
1answer
17 views

Cartesian coordinates inside Spherical function

I would like to write a function that draws a graphic object and its projections along the x,y and z axes. I specify the $r,\theta, \phi$ of the object and an arrow and it's dashed projections are ...
0
votes
0answers
7 views

How to handle DLL dependencies between .NET dll and non-.NET dll's

I think my problem arises because I am successful with loading a .NET assembly, creating an instance and calling methods from a .NET dll. Certain methods, however, call methods from other non.NET ...
0
votes
0answers
16 views

Integrate fortran function into Mathematica

I was trying to use Fortran function in Mathematica. I was following mainly this answer . My Fortran code looks like this: ...
-1
votes
1answer
13 views

CompiledFunction::cfsa Argument x at position1 should be a machine-size real number

I have a compiled function: g:=Compile[{{x, _Real}},...] and call g through an interim function: g2[x_?NumericQ] = g[x] If I call g2[100.], I get the CompiledFunction::cfsa : argument x at ...
0
votes
1answer
15 views

Series Soln False error

When I try to define my equation : sys3 = {y'[x] == 2 y[x]/(1 + y[x]^2) - Exp[y[x]]/(1 + Exp[y[x]]), y (0) == 1} OR ...
1
vote
1answer
21 views

How to return multiple types in APIFunction?

I'd like to publish an api that returns an image as well as a number, but it seems that the docs for APIFunction specifies only a single possible format type: Here's an example to play with: ...
0
votes
1answer
24 views

rescaling X axis

I have a pretty simple code, working fine and producing a plot that is ALMOST what I desire: ...
1
vote
1answer
24 views

A question on JordanDecomposition in Mathematica

How can I have Mathematica show me also the inverse matrix of the similarity matrix of JordanDecomposition of a matrix? Obviously I need to use here the ...
0
votes
1answer
20 views

List of Inequalities in RegionPlot with different colors

Starting from the example of the Documentation: RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Which gives a nice plot with two ...
0
votes
0answers
25 views

differentiating an integral

I am new to Mathematica. i hope to have the software next week so please excuse the unusual syntax. p(y) means p is a function of y. u(p) means u is a function of p . p(x) is the value of p when y=x ...
0
votes
1answer
26 views

How to obtain the data of the intersection line of two surfaces?

I can plot the intersection line of two surfaces $f$, $g$ by using: ...
0
votes
0answers
22 views

Plot3D gives an empty box [on hold]

I have two questions. I am trying to 3d plot a function like in the image below. It gives an empty box displaying no results. I tried adjusting the graphic qualities, but it does no solve the ...
1
vote
2answers
54 views

Double sum in mathematica

It may look like a stupid question, but I was really confused by how double sums works in mathematica: After simplification, the function actually has nothing to do with n2? Also, when I manually ...
0
votes
0answers
15 views

Measuring space complexity?

I like using GeneralUtilities function BenchmarkPlot for estimating time complexities, is there something similar for ...
0
votes
1answer
32 views

Plot for function that calculated direct with while, but is piecewise

For this question Use of {FOR, Do, If,Plot} that ..., I wrote this code: ...
3
votes
1answer
29 views

Run several input cells in parallel

I have a notebook with several input cells that produce data which is then plotted into separate graphs. Since I do not want to save the results, because it makes the file huge, I keep the ...
1
vote
0answers
51 views

Definite integration in mathematica

I tried to integrate the following in Mathematica. $\int\limits_{-\infty}^\infty\cfrac{\text{e}^{\text{i}ax}}{x^2-b^2}\text{d}x$ where $a,b>0$ The analytical result is well known. ...
3
votes
1answer
80 views

To style Sound object

While doing some signal processing research my aesthetic feelings were heavily struck by following output: The problem here is that 211.96 s label is partially ...
1
vote
1answer
65 views
2
votes
1answer
40 views

Multiple pattern test in the definition of a function

I have a very simple question, and I'm sure there is a way to do this but I cannot find it: if I want to create a function that's defined only for matrices, I can do it like this: ...
1
vote
2answers
65 views

Plotting logistic maps

I have a question about plotting in Mathematica in general, and this particular recurrence relation as an example: $\qquad x _{n+1} = rx_{n}(1-x_{n})$ How can I plot the following plots as shown ...
0
votes
0answers
20 views

Make an existing solution for monitoring parallel jobs robust against dying kernels

Is there any chance to make the solution by @David here http://mathematica.stackexchange.com/a/1562/21606 more robust in the following sense: In my case, some parallel kernels die regularly during ...
0
votes
1answer
30 views

An unexpected NDSolve behavior [on hold]

I observe the following. The code: ...
0
votes
0answers
24 views

Setting Initial Conditions in a System of Differential Equations that don't start at t=0

I have a system of six differential equations (linear for the sake of the discussion). I want to set the initial condition to start at time t=18 and not time t=0. I know the values of the dependent ...
1
vote
1answer
24 views

Importing an .eps file failed in the latest version of mathematica

It was quite straight forward to import an .eps file (also pdf and other formats) into a script, with the version 10.0. that I had before; but, since I upgraded my Mathematica to the latest version ...
0
votes
4answers
44 views

Matching a Table and a List and building a new Table

I have a Table which includes {Numbers, Probabilities}. For example A= {{1,0.5},{2,0.25}, {3,0.1},{4,0.9}……{100,0.1}}. Put attention that the numbers are 1,2….100 in order. I have a List of random ...
4
votes
1answer
56 views

How can a function without an operator form be used in postfix form?

As an exercise, I was trying to convert the following Clojure code to Mathematica: ...
1
vote
1answer
49 views

Using Mathematica to batch-produce text files

I need to make a bunch of plaintext files, all of which differ only in a single parameter. The text I want to "copy" or "batch produce" is a little bit complex, since it contains quoted areas and ...
0
votes
0answers
21 views

Solving Time-Dependent PDE's Analytically with no non-trivial Boundary Conditions

I'm having some trouble solving a partial differential equation that is supposed to model the propagation of a scalar field in Schwarzschild spacetime using spherical coordinates. I'm using the DSolve ...
0
votes
0answers
29 views

A function for replacment in mathematica [on hold]

when you have too many replacements such as a1 x+ b2y + c1 z/.{a1->s^2+b^2,b1->r^2+g^2,c1->f^2+k^2} is it possible to define a vector like this ...
4
votes
1answer
54 views

How can I make an invisible Cell?

Notebooks have a Visible option, but Cell // Options doesn't mention any equivalent for ...
-2
votes
0answers
24 views

how to know two aircraft getting far away each other? [on hold]

Dataset: my algorithm is: calculate velocity vector each aircraft ...
4
votes
2answers
221 views

How do I encode this replacement rule?

I'm pulling a 5x5 array from a larger array. The small sub-array (call it S) can contain any combination of the symbols A, B or 0. What I'd like to do is: if the array contains any matching pairs ...
2
votes
0answers
41 views

Why can Mathematica compute numerical sums more efficiently when they are written as matrix operations?

Let $f(n)$ and $K(n,m)$ be functions such that the double sum, which we wish to evaluate numerically, $$ \sum_{n=1}^a \sum_{m=1}^a f(n) f(m) K(n,m) $$ exists when $a$ is some large positive number. I ...
5
votes
0answers
39 views

How to find the concave points of a point-set?

To solve the boundary of a set of planar geometry, I sampled $6$ graphs, then using RunnyKine's approach. ...
5
votes
0answers
26 views

EventLocator in NDSolve seemingly hogs memory in Windows, but not Mac

I have written a function (ftest in my code) which does the following: Takes a vector {x,vx,vy} as input Numerically solves (with high precision) a specific ...
2
votes
0answers
58 views

Complicated implicit plotting - can it be tackled?

I'm quite new to Mathematica and have already spent tons of time on problems of this type, browsing through tutorials and topics here. I'm now coming to conclusion that it cannot be done and am about ...
2
votes
1answer
65 views

What's the easiest way to find the closest point in a list of pairs?

I frequently end up in this situation. I have a solution, but I suspect it's the dumbest way of doing it. Frequently, I'll have a list of pairs, for example: ...
0
votes
0answers
54 views

Learning Mathematica for Math Majors [duplicate]

I just downloaded Mathematica and I'm taking a course in Multivariable Calculus. I realize there is a lot of complexity to Mathematica and there are Many types of learning resources out there. I was ...
9
votes
1answer
144 views

NDEigensystem returns incorrect eigenvalues for 2D coulomb problem, eigenfunctions contain discontinuity

I posted a similar question a short time ago regarding the 3D Coulomb problem. Jens' excellent answer to this thread allowed me to obtain the correct eigenvalues and eigenenergies for that system. I ...
1
vote
1answer
67 views

Plotting a convex hull with a coordinate mesh

I am plotting the convex hull of some curves by extracting the curves from a contour plot and constructing the convex hull around their discretized version . It's not terribly accurate for ...
1
vote
1answer
63 views

Seeing coordinates in Graphics3D

I'm writing some structures built up from different strings that specify the coordinates of the lines. The code used to generate these is built up from a ton of user defined functions from my library, ...
7
votes
0answers
47 views

CopyToClipboard freezes FrontEnd

This is freezing the FrontEnd: CopyToClipboard@ExampleData[{"Text", "AeneidEnglish"}] Are there system limits I'm hitting here?
2
votes
1answer
65 views

Prevent evaluation after ToExpression

How can I produce both typesetting and evaluation of a LaTeX expression? Illustrative example: The evaluation of HoldForm[Sqrt[2.0]] == Sqrt[2.0] looks ok (aside ...
-4
votes
1answer
57 views

what is wrong with this plotting code? [on hold]

Heres the question: The region bounded by f(x) = x+2 and g(x) = sin(x) between x = 0 and x = Pi/2 i. Plot the region on the interval [0,Pi/2], between y = 0 and y = 4. ii. Find the area of the ...
1
vote
0answers
42 views

Change “ListPlot” to 16 bit accuracy? [on hold]

I have (with the help of this forum) managed to plot a bifurcation diagram with the following code: ...
1
vote
1answer
45 views

Define a 4d matrix without for loop

I was wondering if there is a way to avoid for loop here: I want to define a 4d matrix H(i,j,k,l), and each entry in the matrix is calculated through a complex function, say Do_H(i,j,k,l), depending ...

15 30 50 per page