0
votes
0answers
34 views

Export a 3D array (with time) from matlab to mathematica

I am using again Mathematica and enjoying it. I have a question, is there a way to do a "time" plot of 3D vectors? I try to be more clear, I have 12 vectors (3D vectors). They are changing over ...
2
votes
1answer
98 views

(NDSolve) Non-linear 2nd order ODE, regular singular point (looking for good methods for this problem)

I am solving this set of non-linear 2nd order ODE by NDSolve, $$r^2\frac{d^2f}{dr^2} = 2f(1-f)(1-2f)+\frac{r^2}{4}h^2(f-1)$$ $$\frac{d}{dr}\left[r^2\frac{dh}{dr} \right]=2h(1-f)^2+\lambda ...
0
votes
2answers
59 views

Complete definition of special functions in Mathematica [on hold]

How can one display the actual integral involved in special functions like this MarcumQ[2, a, b] in Mathematica?
3
votes
1answer
48 views

Running Java with Wolfram Workbench on a parallel kernel

I'm trying to load my package on a parallel kernel while debugging in Wolfram Workbench 2.0. My project is set up as a Java project and parts of it use Java functions located in jar files. The java ...
1
vote
1answer
30 views

How to change time zone for all outputs? [on hold]

How to change the time zone in Mathematica for all functions returning a date or time?
1
vote
0answers
32 views

Load a package and use it's functionality inside C#

I am trying to make a windows C# form which uses some functions that I wrote inside Mathematica. Suppose that we have the following package: ...
10
votes
1answer
373 views

Symbolic Integration along contour: branch cut problem?

Context Following this question on path integrals in the complex plane, having defined again a numerical and symbolic integrator along a path as ...
9
votes
1answer
296 views

What is the complete list of valid FrontEnd Packet types?

In response to my question How can I get the unchanged Box form of an arbitrary expression? John Fultz answered with a method using the hilariously named ...
-1
votes
2answers
86 views

Want to compute the permutations of {1, 2, …, 11} with only 3 GB of memory [duplicate]

There is another way to calculate Permutations [{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}] without triggering an error, I have 3 GB of RAM with WIN 7
1
vote
0answers
58 views

Combining Mandlebrot and Monte Carlo

I'm trying to combine plotting a Mandlebrot set with using Monte Carlo randomization to plot an equation using random points for complex number z, for the function z^3-2z+2=0 Below is the code I have ...
0
votes
1answer
171 views

Is it possible to build/simulate/extract data from a System Modeler model completely inside a notebook using the MathModelica language syntax?

See examples in: http://www.mathematica-journal.com/issue/v10i1/contents/MathModelicaPaper/MathModelicaPaper_2.html It seems to be ruled out by the statement (Chapter 2 intro): "The subset of the ...
8
votes
2answers
327 views

How to get a list of available appearance/styles/Methods?

This is a basic question but I haven't found any answer yet :/ Available appearances for Button[] are mentioned in Help, those ...
4
votes
2answers
93 views

How can I insert an element every $n$th position in a list?

How can I insert an element every $n$ positions in a list? For example, inserting a zero as every 4th element to turn {1, 2, 3, 4, 5, 6, 7} into ...
204
votes
21answers
25k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
5
votes
2answers
281 views

Can someone explain this code for joining two lists by the first element of each sublist?

Background (which may be skipped, unless context is needed) I've recently begun learning Mathematica (and only up to chapter 3 of Wellin), but wanted to write some code to get a better feel for ...
14
votes
2answers
233 views

Inline documentation of “Properties”

Context I find the documentation has become a bit of a maze, in particular given the more recent convention of having keywords has strings rather than Mathematica Keywords. For instance, ...
1
vote
0answers
48 views

Why am I getting a conditional output when importing the Dirac Equation to Mathematica? [duplicate]

Just starting out with Mathematica and trying to use the Dirac Equation. I'm working with the following form of the Dirac Equation: $$ i \hbar \gamma^\mu \partial_\mu \psi - m c \psi = 0 $$ And my ...
2
votes
2answers
140 views

Issue with Set function

Tables often come with column headers. Indexing the columns with the header is a natural thing to do. Although a proper dictionary is the usual solution in such a case, I find it often practical and ...
3
votes
1answer
108 views

Running PowerShell commands in Mathamatica

I'm trying to execute a PowerShell command using Mathematica. Someone has made it before? I tested my command direct in PowerShell, and it worked nice, but no ideia on how can I make Mathematica to ...
0
votes
2answers
76 views

How to change plot unit or scale the number of axis?

I want to use ms instead of s as the unit of x-axis. But frameticks seems not to work here as it cannot change the value of x-axis. How to replace the number of x-axis 0.0001 with 1 or 0.1? Or just ...
0
votes
0answers
29 views

Why does ParallelMap throw errors where Map does not?

I am encountering a problem with ParallelMap. I have a call in a large code base, part of which attempts to fit data in parallel using ...
6
votes
2answers
193 views

Setting OperatorSubstitution to False has issues with PDF and EPS exports. Are these bugs?

In Plot, I would like to use my own font, eg Inconsolata, for operators such as ×, so I set OperatorSubstitution to ...
0
votes
2answers
89 views

Solving differential equations with Wolfram Mathematica

So i saw this differential equations in my textbook $\frac{{{d^4}\omega }}{{d{x^4}}} + 4{\lambda ^4}\omega = 0$ and i figured why not solve it with majestic Wolfram Mathematica, so i write this ...
1
vote
3answers
56 views

Selective data append to nested list

I have a list of database id and stock indicies which I use to withdraw the related price data. lis = {{4470, "^AEX"}, {4471, "^AFLI"}, {4472, "^AORD"}} I use ...
2
votes
2answers
79 views

Dynamic arrays and lists with compile (Append, Linked lists etc.)

I have a code that I need to compile. The code contains a loop in which I need to gather data into a list. The question is how to best gather data so that the code works inside Compile. The following ...
2
votes
1answer
49 views

Show [In] and [Out] tags after quitting Mathematica

I cannot find a way to show [in] and [out] tags when evaluating cells after I close the application. Is there a way to keep these shown? I disabled the kernel in global options but cannot transfer ...
0
votes
1answer
47 views
2
votes
1answer
57 views

Find confidence interval for negative binomial using Mathematica

I would like to find the exact 95% confidence intervals on the mean of a negative binomial random variable using Mathematica. It is possible to approximate the distribution using a gamma/normal, but ...
0
votes
0answers
20 views

Is there any way to format the results of Wolfram|Alpha

I have noticed that when getting Wolfram|Alpha results via WolframAlpha[], the output is formatted to (what appears to be) Times New Roman and Helvetica for units ...
0
votes
0answers
31 views

Parallelize: No speed-up when using with FindMaximum

I have developed a program to compute the maximum value of an specific function multiple times, with different parameter values each time. I've been using the ...
0
votes
0answers
23 views

Returning multiple results from compiled functions in M10 [duplicate]

I have found a similar question from 2012 here. It has been 3 years now and we have version 10. Have there been any attempt to solve this problem either by Wolfram or by the community - how to return ...
0
votes
0answers
42 views

Tools for factoring large numbers [on hold]

My laptop is Acer aspire one , what do I need for factoring very large numbers,say 1000 digits in reasonable time .What the best thing I can do, Should I buy something ? (Software ?). Is mathematica ...
2
votes
0answers
30 views

Display of ConfusionMatrixPlot depends on Stylesheet

I´m using Classify and do the testing via ClassifierMeasurements. Now I observed that ConfusionMatrixPlot is not shown correctly when using StyleSheet Report(default). Maybe you can reproduce (example ...
1
vote
2answers
29 views

Using TransformationFunction

I try to use the result from the function FindGeometricTransform. It returns an error and a TransformationFunction. The TransformationFunction is technically a 4x4 matrix. But how can I use the ...
0
votes
1answer
97 views

n-fold convolution

I am trying to calculate n-fold convolution of a function as $G^{*n}(x)$ where $G(x)=1-a*exp(-b)+b*ln(b)$. I tried this function, Convolve[G[x], G[x]^{n - 1}, x, x] but it didn't give any answer. ...
7
votes
2answers
2k views

How to find the Shortest Path, visiting ALL vertices, without coming back to the start (Hamiltonian Path, minimum distance)

A car has to pick up each person and take them to their destination. I am trying to find the shortest tour that will do this. How can I find the shortest path between any s and t.... visiting all ...
1
vote
1answer
44 views

Precision of starting values in FindMinimum [on hold]

I am currently working on an optimization of chemical kinetic model. Starting points for FindMinimum are defined as: ...
1
vote
1answer
40 views

How to list plot data where the slope determines if it is plotted from a list of data?

I am trying to listplot data from a list of data where the slope of the curve determines if it is plotted. Example: Lets say the data measured is of the form x^2. I measure this data multiple times ...
4
votes
0answers
38 views

Import succesful when file manually deleted

apparently Import keeps an imported file i the cache and doesn't complain for some time if a file is deleted manually from the system and then it is imported. If the file is deleted from within ...
0
votes
0answers
12 views

Dashed/Hatched filling in RectangleChart [duplicate]

I am making a RectangleChart where I want one of the rectangles to be hatched (dashed filling). You would think this would be easy in Mathematica, but I have not been able to find the code for this. ...
-1
votes
1answer
42 views

Create a list of all functions given a set of arguments

I'm trying to examine some patterns on the permutation of elements in finite element functions. I'd like to create a list of all functions (256 of them) on ...
8
votes
1answer
81 views

Unexpected slowness checking for empty list?

I thought I had a firm understanding of the differences between Equal and SameQ, but this has me puzzled: ...
0
votes
1answer
40 views

How to see partial results during evaluation [duplicate]

I am computing a long Table[], but the computation of the last few elements is taking too long, and I am afraid I will never converge. I would like to access the ...
5
votes
2answers
169 views

Random walk with fixed initial and final coordinates and the length

Looking at the problem of a random walk in 2D or 3D, I would like to generate several trajectories that start all in some starting point, say, (0,0) in 2D and (0,0,0) in 3D and end up all in a ...
0
votes
1answer
102 views

ListDensityPlot and RegionFunction

I have the following ListDensityPlot : ...
0
votes
0answers
37 views

How to eliminate all terms of a variable with square root in an equation?

I did the following thing: take an equation with square root terms, by moving terms and squaring two sides, finally ending up with a polynomial of the specific variable. My algorithm is like this: ...
1
vote
1answer
38 views

Change date format in nested lists

I have a list of index symbols and data as follows: ...
0
votes
0answers
69 views

Can a whole Mathematica program be placed inside my functionMain? [on hold]

Consider this C code #include <stdio.h> int main() { printf("Hello world\n"); return 0; } A Mathematica equivalent could be ...
1
vote
3answers
90 views
1
vote
2answers
41 views

Confusion in Numerical Integration while using FindRoot

I used this code for numerical integration NIntegrate[(x^2 - .0015 x^4)/D[(x^2 - .0015 x^4), x], {x, 1.414, 13}] when upperlimit of x is 13, the integral value ...

15 30 50 per page