All Questions

5
votes
1answer
181 views

How can I Integrate large trigonometric expressions more efficiently?

I have a requirement to integrate some large symbolic expressions containing products of trigonometric functions. A single integration is averaging 7 minutes, and I have 2628 expressions to integrate, ...
1
vote
0answers
29 views

Why the same function defined by Set and SetDelayed look different? [duplicate]

I am novice to Mathematica and maybe my question looks kind of silly, but nevertheless here is it. I input two functions: ...
9
votes
1answer
430 views

Curve fitting by running through hundreds of models and return the one with best fit

In the past, I used to solve a lot of my regression analysis (curve fitting) problems with a program called DataFit which runs on Windows. It has hundreds of regression models which it runs through in ...
3
votes
1answer
97 views

Efficiently reading CSV with ReadList

I have a large CSV file (~1gb) with mixed data. Basically with strings and integers. It takes very long to import this whole dataset with Import[] so I would like ...
2
votes
1answer
121 views

Want a different color for each curve displayed with Show

I want a different color for each curve that I am displaying with Show. The functions are: custom1 custom2 custom3 custom4 custom5, and I am using the following ...
4
votes
2answers
116 views

what is The Formula behind the Kolmogorov-Smirnov test statistics?

I calculate the Kolmogrov-samirnov test statistic for the following data: ...
3
votes
2answers
124 views

Pairwise similarity comparison

I have a 444-member array of arrays called final, with each subarray containing 12 integer members. How can I do a pairwise comparison of the contents of the ...
4
votes
3answers
153 views

Polynomial with alternating sign coefficients from the odd degree terms of a Truncated Power Series

I'm trying to make a function that will take any truncated power series I give it, strip away all the even degree terms, then change the sign of the coefficients of every other term. So that we have a ...
0
votes
2answers
68 views

Some parts of curves are being cut off by the frame in my multiple curve plot

I am trying to plot several curves and show them in the same figure, but parts of curves being cut off by the frame and not showing fully. I am using the commands ...
2
votes
0answers
47 views

Better way to compute triple (or higher order) convolution

I have an identity that I want to verify. $$\sum_{i+j+k\ge ...
1
vote
0answers
54 views

Creating an orrery

I am interested in creating an orrery, ideally with SystemModeler. I have been experimenting with the MultiBody library since that allows you to do animations. The most relevant example seems to be ...
0
votes
1answer
81 views

Front-end: How can one programmatically extract window titles?

I would like to programmatically get the titles that appear at the top of notebook windows, particularly for notebooks that have not yet been saved (if they have been saved, I can get the information ...
0
votes
0answers
46 views

Scaling ParametricPlot

How can I scale the plot obtained by ParametricPlot nicely in the following case? ...
3
votes
1answer
53 views

Why are the edge items in `Grid` truncated?

The first and last rows and columns of my Grids always seem to be smaller than all the other rows in my Grid, as of they had ...
3
votes
3answers
76 views

Generating increasingly longer lists from a single list

I start with an array such as {{1,1},{0,1},{-1,1}}. (1) I want to create an array from this which replaces each array inside the array with 3 new arrays, one ...
5
votes
0answers
66 views

Ways to overcome failure of TextRecognize on relatively simple price tag?

I would like to perform OCR on this sample image. TextRecognize[Import["RedBox.jpg"], Language -> "German"] returns ...
0
votes
0answers
24 views

Calculate number of probabilities [migrated]

I want to calculate a number of probabilities of a+b+c=1 For a vary from 0 to 1 with an incrementing of 0.1 For ...
0
votes
1answer
33 views

Combining two SmoothHistogram plots without normalization of each

I'm trying to plot a density of states out of a list of energy values, and on it I want to include another over-layed plot with it that shows some fraction of that density of states at different ...
0
votes
1answer
41 views

Turning off black lines appearing in plots from the ContourPlot function [closed]

ContourPlot[Sin[6.5 x], {x, 0, 2 Pi}, {y, -1, 1}] The image turned out crappy, but basically, I do not want all the vertical black lines. I assume this is ...
1
vote
1answer
69 views

Transform a rule to a list of rules

How can this rule a -> {1, 2, 3} be transformed into this {a -> 1, a -> 2, a -> 3} by way of a function? ...
2
votes
4answers
196 views

How do I find the position of the maximum value in each column of a table?

Given a table of values, I know how to find find maximum values, but how do I find the position of the maximum value in each column. For example, given ...
3
votes
2answers
108 views

Plot a space curve and its curvature

The vector is < te^t, e^-t, Sqrt [2]t >, where -5 <= t <= 5 I have to plot the space curve and its curvature ...
1
vote
1answer
47 views

Missing solutions for complex equation system

I am currently working on a game-theoretic paper and trying to match two complex best response functions. The equation system includes two decision variables x and ...
1
vote
1answer
57 views

Unmapped white region in ContourPlot, PlotRange -> All does not fix the issue

When I try to create a ContourPlot of the magnitude of the following vector I get a white area that should be filled with values. Running the following code: ...
3
votes
1answer
141 views

CSV vs XLS for import

I need to import data from various database sources. At the moment I plan on importing files via a CSV file or XLS. All the data if in XLS would be on one sheet (notebook). Are there any advantages ...
3
votes
2answers
69 views

Interpolation function error: Interpolation::femimq and Interpolation::fememtlq

In Mathematica 10 the following command ...
5
votes
2answers
83 views

Labelling a subset of contours using ListContourPlot

I have a data set with entries of the form [nx,ny,E] and have made a contour plot of this data. I would like to add labels to only a subset of these contours, for instance every other contour. How ...
0
votes
1answer
47 views

LinearSolve in Mathematica, used to find square matrix

Another issue I have with Mathematica today is that I want to solve the following matrix equation: X.b=c where b and c are two vectors, and X is a square ...
2
votes
4answers
59 views

Extracting the body of a function

I have a very simple issue with Mathematica, but I can't seem to find an answer for it. I solved an equation with DSolve, and I got a result as an array of the following type: ...
-1
votes
0answers
60 views

Find intersections of great circles [duplicate]

I would like to plot out the intersections of great circles as dots. Here is the code to display the sphere with great circles (Original post http://mathematica.stackexchange.com/a/19350/193) ...
20
votes
1answer
255 views

How to extract a list of available Method-s

The option Methodapplies for several functions, such as NDSolve, FindRoot, ...
1
vote
1answer
38 views

How to indroduce a value for the functions inside a matrix? [closed]

I would like to assign certain values to the X and Y variables which are inside the functions in the matrix. Thus, I would like to get a matrix with values based on the transformation in Psi matrix. ...
1
vote
1answer
32 views

Frame labels for Overlay of two plots to look like plot with two y-axes

I have a two time differential equations system: A[t] and B[t]. (I am omitting their specific form.) I would like to display the ...
0
votes
1answer
79 views

Fitting data to a circle with FindFit

I'm currently trying to use the Mathematica's FindFit command to fit a curve of some data to the bottom half of a circle. The data is of the form ...
2
votes
1answer
80 views

ListPlot with background image?

I need repetitive plots like this below. I invented that I refuse to use pen and I will plot the points in Mathematica, then change opacity, then change contrast and voula get the points to the graph ...
6
votes
3answers
223 views

Calculating integral by Romberg Algorithm

In my "Numeric Anasyis" course, I learned the Romberg Alogrithm to calculate the numerical integral. The Romberg Alogrithm as shown below: $$ ...
15
votes
1answer
409 views

How to programmatically extract mathematical formulas from Word with Mathematica 9?

I have a bunch of(1000+) Microsoft Word document in .Docx format. How can I programmatically extract the mathematical formulas from MS Word using Mathematica 9? This is what example looks like (or ...
2
votes
1answer
108 views

Show how Eliminate arrives at reduction

Does anyone know how to get Mathematica to show how it arrives at the following result? ...
0
votes
1answer
43 views

How to show right count of decimal number in mathematica 10

I have some random number x. It can be 222.1245646 or 3.141562652. How should I show this number to 5 decimal numbers ? I cant use this: N[x, 5] because it shows 5 ...
0
votes
0answers
17 views

Use intercepts to plot a plane [duplicate]

The plane is 6x -3y + 4z = 6 and I found the intercepts are: x = 1, y = -2, z = 3/2 I have to use Plot3D to plot the plane formed by these three points. How can I do that?
5
votes
1answer
180 views

Simple while loop alternative in Mathematica

I have noticed that there are a few examples that go into some detail regarding While loop alternatives. (See here for example: Alternatives to While Loops?) However, I wanted to provide a simpler ...
2
votes
2answers
49 views

Can I use 'ItemStyle' in 'Grid' to specify the style of individual items? [closed]

I'm confused by the documentation for ItemStyle. I can't figure out how to specify styles for individual items in a Grid. ...
1
vote
1answer
33 views

Problem with loading a Jar file in Workbench

I'm trying to load a Jar file in a Workbench project using (after importing "JLink`" in the package declaration): ReinstallJava[ClassPath->"pathToMyJar"]]; In ...
0
votes
1answer
164 views

Is Mathematica 10 compatible with Mac OS X 10.10 Yosemite

When I try to launch Mathematica 10 on my iMac with OS X 10.10, I get the message: To open 'Mathematica' you need to install the legacy Java SE runtime. However, a Mac version is not available ...
8
votes
3answers
140 views

Complicated list slicing

Say I have a list with the structure list = {{1, {x1, y1, z1}}, {2, {x2, y2, z2}}, {3, {x3, y3, z3}}, ...} I would like to slice it such that I end up with ...
0
votes
0answers
27 views

ParagraphSpacing inside Style'd Text

From ParagraphSpacing's documentation: ParagraphSpacing is an option for Cell, StyleBox, and Style that specifies how ...
1
vote
1answer
33 views
1
vote
2answers
68 views

Forcing Ticks on Lower Left Corner of Plot

I have a graph that looks like this: I need to have it labeled so that 14 appears in the lower left (I know it's obvious but that's what the publication I'm working with wants). That makes the ...
2
votes
1answer
166 views

Log of a Matrix

I have used the command MatrixLog[m] But it gives natural log of the matrix. How can I find the Log (to the base 2) of a matrix?
3
votes
2answers
219 views

Should we invest in Apple?

Ticker[comp_String] := Interpreter["Company"][comp] /. Entity[_, x_] :> x ticks = Ticker /@ {"Apple", "Google"} {"NASDAQ:AAPL", "NASDAQ:GOOGL"} ...

15 30 50 per page