3
votes
1answer
85 views

Does LinearModelFit perform an ordinary linear regression (least squares)?

Does LinearModelFit give an ordinary linear regression? I see lots of options, but nothing like "least squares" or OLR.
5
votes
1answer
76 views

How to calculate this integral? Integrate[BesselJ[0, x - BesselJZero[0, 1]]/x, {x, -Infinity, Infinity}]

I tried to calculate the following integral, but it returned unevaluated. ...
2
votes
0answers
52 views

Put webMathematica folder outside Tomcat webapps folder?

Is it possible to put the webMathematica folder outside the usual Tomcat webapps folder and still have webMathematica work? ...
1
vote
0answers
36 views

Scaled ColorData Function [duplicate]

I have a four-dimensional array c, in which the first dimension represents time and the other three dimensions represent (x,y,z) ...
0
votes
0answers
37 views

location of csv file when importing [closed]

I am trying to import csv file to mathmematica. However, when I tried to import, Mathematica was not able to find the file (see below). Do I have to move the csv file to the specific position? ...
1
vote
3answers
92 views

Sync Animated Plots

Here is my Lorenz code: ...
1
vote
0answers
64 views

Most CDF displays in browsers suddenly became grayed out [closed]

Suddenly, starting May 5th, most CDF displays on Chrome and Firefox became grayed out. This problem occurs for the displays in my blog (old ones and new ones), and displays of Wolfram Demos from their ...
6
votes
1answer
80 views

Remap Ctrl+Space?

The Ctrl+Space keyboard shortcut is really important in Mathematica for using Placeholder[] boxes in input templates. Unfortunately, Ctrl+Space occupies the ...
5
votes
0answers
106 views

Parallelizing is much slower than single kernel evaluation?

Starting with a vector of matrices, tVec, I would like to parallelize the multiplication of each element with the same matrix ...
1
vote
1answer
57 views

How can I assign specific colors and sizes to 2D coordinate arrays being plotted with ListLogPlot?

I'd like to plot two sets of coordinates in two different arrays using ListLogPlot, and be able to individually specify the sizes and colors of the datapoints for each array. Things seem to work ...
0
votes
2answers
82 views

Import matrices side-by-side separated by TAB

The problem is 0(TAB)0 interpreted falsely as a dark red square although it should be a dark red square surrounded by zeroes/ones. Import has different data-formats ...
2
votes
2answers
170 views

Working with a database

I just started to work with a database through Mathematica. I have a large data set. I use an .mx file to store my data. Now I have to store the data in a database, ...
5
votes
1answer
90 views

How can I change the size of the plot markers

I use ListPlot in order to plot four sets of data and also insert legends in my plot. Here is the Mathematica code ...
3
votes
0answers
53 views

Command to get License Management Monitor info

Using Netlink, when we have more users than Mathematica licenses (used in a pool), we get messages such as: Error code: 11. Connected MathLink program has closed the link, but there might still be ...
0
votes
0answers
52 views

Is it possible to create a styled cell with some dynamic contents

I'm making a personal templalte/stylesheet, Let me explain my question use the [correspondence] sytlesheet: Create a New Cell, Alt+1 or Alt+Shift+1 (windows system shortcut) set the Style is ...
0
votes
1answer
75 views

How to manipulate a Fourier sine series?

I would like to plot the Fourier sine series for $f(x) = x$. I would like to manipulate the parameter n from $0$ to $10$ and plot the sine waves over $(0,1)$. My ...
3
votes
3answers
215 views

Implementing the Farey sequence efficiently

There is of course the silly implementation: FareySequence[n_] := Union[Flatten[Table[j/i, {i, 1, n}, {j, 0, i}]]] However, there are numerous properties and ...
4
votes
2answers
64 views

Refresh dynamic variable when used with Get

I came across this issue with a more complicated program I was working on. Suppose we have a volatile variable data: ...
2
votes
1answer
120 views

How to convert the symbol $d$ in Integrate into $\mathrm{d}$?

I used TeXForm[HoldForm[Integrate[x^2, {x, 1, 2}]]] to convert the integral $$\int_1^2 x^2 \, dx$$ How to get $$\int_1^2 x^2 \, \mathrm{d}x ?$$
-4
votes
0answers
59 views

Very long evaluation time of NDSolve [closed]

The following code takes a very long time, and I am not quite sure why. The Quiet is needed as otherwise there are many error messages of the form ...
-2
votes
0answers
118 views

What does “# & /@” do? [closed]

This code plots a crystal lattice. a and b are the primitive vectors and tauA and tauB are the locations of atoms A and atoms B. So far there's two things I don't understand: What does the "@@" in ...
0
votes
2answers
83 views

Plotting array of vectors with conditions

Given data in the form list={{{1,2},{3,4},{5,6}},{{7,8},{9,10},{11,12}},...} a matrix where elements are 2-element vectors, what is a efficient way to plot this ...
5
votes
1answer
96 views

Error invoking Information on functions containing Legended

In adapting some plotting functions to utilize the PlotLegends option of version 9, I came across the following errors: ...
2
votes
1answer
85 views

Is it possible to treat starting values as variables?

I have a problem where I am using FindRoot a gazillion times over a grid of parameters. I need to allow the starting values to vary a bit with the parameters to get it to converge. Here is a simple ...
1
vote
1answer
170 views

solving a cubic equation

I need to find the minimum $r$ and the maximum $k$ of the following cubic equation for which there does not exist three distinct real roots. $rx^3-rkx^2+(r+k)x-rk=0$. Is it possible to find such $r$ ...
7
votes
1answer
115 views

How do I get a general form for n-th derivative of a function? [duplicate]

I tried the following but it basically returns unevaluated: ...
1
vote
1answer
100 views

Improve performance for finding Fibonacci number which have divisibility property

In this post, the OP requires finding a Fibonacci number having some divisibility property with Mathematica and Maxima. I tired tried that Mathematica code on Mathematica 9.0 and it's still slow ...
12
votes
1answer
95 views

How to instruct FullSimplify to assume that PossibleZeroQ returns correct result?

Sometimes I have a really huge expression that cannot be significantly simplified by FullSimplify. I would like to, so to speak, "simplify with faith" using ...
8
votes
3answers
104 views

What does `: Hold[$IterationLimit]` mean?

In this answer, what does the : Hold[$IterationLimit] part of the following construct do? ...
0
votes
1answer
78 views

joining lists based on content

I have lists created by other processing steps, which are basically constituted by elements like this: ...
0
votes
0answers
76 views

How to highlight a string pattern? [duplicate]

This is an example in the help pages (Working with patterns: Highlight Patterns): ...
2
votes
1answer
103 views

rasterListContourPlot With PlotLegends in Mathematica 9

Jens Nöckel has write functions about (List) Contour Plots with rasterized shading in Mathematica: http://pages.uoregon.edu/noeckel/computernotes/Mathematica/rasterContourPlot.html It works well. ...
1
vote
1answer
72 views

Generating a list of specific intermediate numbers associated with continued fractions

First of all, I don't know how ContinuedFraction[] or Convergents[] are implemeneted, and I think it is immaterial to my ...
0
votes
3answers
216 views

Fit line similar to power of trendline in Excel

Is there a way to fit a line similar to power trendline in Excel? Something in this fashion: Fit[data, {1, x, x^(-n)}, x] ...
3
votes
3answers
68 views

Picking certain pairs according to a condition

I'm a Mathematica beginner and can't find out a solution to my problem. I have a list of pairs of numbers, for example something like this, but much longer: list={{2., 3.}, {3., 2.}, {5., 4.}, {4., ...
1
vote
1answer
52 views

How can I nicely overlay fits for multiple arrays with ListPlot or ListLogPlot?

I'm plotting multiple lists with ListPlot[] or ListLogPlot[]: ListLogPlot[{ListA, ListB, ListC, ListD, ListE}, PlotRange -> {{0, 100}, Automatic}] I also have ...
0
votes
2answers
52 views

Automatically evaluating related cells

I have the cells: In[1]:= l = 2 + 2; In[2]:= l >= 5 After evaluating them: Out[2]:= False Is there a way to evaluate ...
2
votes
1answer
93 views

How can I change the MPS format in Linear Programming samples of Mathematica?

I am trying to play with some linear programming examples of Mathematica as ExampleData[{"LinearProgramming", "blend"}, "Equations"]. It gives me the MPS format of ...
0
votes
1answer
87 views

Reversing axes to get Poiseuille profile [duplicate]

I am trying to plot my velocity profile, similar to this plot (not the arrows, just the shape) Here is my function ...
1
vote
1answer
55 views

A weird thing about ListPlot3D [duplicate]

I plot the function f(x,y). x goes from 0 to 25 and y goes from 0 to 12. So, my plot should look elongated since the range of x is twice as long as the range of y. The problem is that, mathematica ...
2
votes
0answers
42 views

RSolve and incomplete gamma function

I am interested in how Mathematica uses the incomplete gamma function to solve difference equations. For example, if we have this inhomogeneous, 2nd order equation and use ...
7
votes
1answer
135 views

How can I make a cell that contains an image which can be shifted?

When you look at some help pages, they may have cells containing images which are movable within the cell when you left-click and drag the mouse. Here is a sample: ...
1
vote
1answer
110 views

Confused about Unevaluated

Why does Map[Unevaluated, Table[PauliMatrix[i], {i, 1, 3}] give {Unevaluated[{{0, 1}, {1, 0}}], Unevaluated[{{0, -I}, {I, 0}}], Unevaluated[{{1, 0}, {0, ...
2
votes
2answers
99 views

ODE and BVP: NDSolve errors

The mathematical problem is shown here. I tried to solve writing the ...
2
votes
2answers
144 views

A matrix-vector cross product

I want to do a cross product involving a vector of Pauli matrices $\vec \sigma = \left( {{\sigma _1},{\sigma _2},{\sigma _3}} \right)$; for example, $\vec \sigma \times \left( {1,2,3} \right)$. ...
4
votes
2answers
111 views

Strange behavior of Integrate

I'm trying to calculate the following integral using Mathematica 9.0.1.0 a11=Integrate[Abs[Sin[b+x]],{x,0,2*\[Pi]}] This should be a simple problem; however, it ...
1
vote
0answers
75 views

Notebook UI: Autocompletion - Display function arguments when typing?

Is there a setting to display the required arguments of a function when typing as Visual Studio, Matlab, etc. does?
0
votes
0answers
5 views

the x-axis is between 0 and L [migrated]

I have a function such as f (x) = 1 + x / L and I would to do graph of this function, where x is between 0 and L (the x-axis is between 0 and L).
8
votes
1answer
160 views

In what situation is the use of Directive required?

Sometimes I see code samples in the document or in this site using Directive, but I haven't yet find a case that Directive is ...
2
votes
1answer
82 views

Expand List Operation

On applying a multiplication and subtraction on a list, like so: x = 2y - 4; Where y is a list containing fractions of complex numbers generated from dynamic ...

15 30 50 per page
1 5 6 7 8 9 156