2
votes
1answer
296 views

Why cant I open CDF's in the Chrome browser on Linux?

I have google chrome on ubuntu 13.04. Every time I try to run a CDF on wolframs website, I'm required to download the CDF first, and then open it in my computer, but when I was using windows it was ...
0
votes
1answer
162 views
3
votes
1answer
341 views

How can I save the current evaluation state of a notebook and start from it later?

I currently have a nested Table command running (in Mathematica 9), with two progress bars to track the variables. I have to shut down or hibernate the computer in ...
1
vote
2answers
594 views

Manipulating Frame labels when legends are also there

I am plotting a few curves inside a frame with labels on three of its sides; left, right and bottom. I want legends to be places at the top. The problem which I am facing is that the top label ...
3
votes
1answer
131 views

Key Mapping in Command Line Mode

I would like to map Ctrl-U to "kill line" when using Mathematica 9.0 in command line mode (i.e. not within the front end, but when called from a Unix command line by "math"). I am aware that (on a ...
14
votes
4answers
470 views

“Unflattening” a list

Imagine we have a list with some hierarchical structure: list = {{{2,3},{2,4}},{{{3,4}}},{{5,6},{7,8}}}; Which we then flatten to some level in order to process ...
3
votes
3answers
282 views

ArrayPlot and non-integer PlotRange

There seems to weird bug regarding non-integer PlotRange in ArrayPlot. For example... ...
1
vote
1answer
646 views

3D Phase Portrait with direction fields and sample solution curves [duplicate]

I have seen NDSolve and ParamtericPlot3D used for things like the Lorenz Attractor, but was wondering if there is a way to draw a 3D phase portrait for a system. Something akin to this: ...
1
vote
2answers
53 views

Get the unevaluated expression from a numbered cell

If a cell exists as below: In[1] := (xyPoints = {{1,2},{2,5},{3,10}}; ListLinePlot[xyPoints]) Is it possible to get at the expression rather than the plot shown ...
0
votes
1answer
204 views

A problem on generating convex hull

For example, I typed the following: ...
5
votes
1answer
456 views

Parallelize plotting

I'm using Mathematica to make a few 3d plots. For the sake of generality, let's say they are unrelated to each other (so I can't imagine making a table out of them). However, the machine I'm using has ...
6
votes
3answers
877 views

Combining Cos[ ] terms

A function that is the sum of two Cosine terms of the same frequency x[t_] := a1 Cos[w0 t + b1] + a2 Cos[w0 t + b2]; can be simplified to a single ...
4
votes
1answer
179 views

Strange behavior on very large numbers

I want to test the value of a differential equation by replacing a solution and setting random values for r and z variables: ...
0
votes
0answers
40 views

NonLinearModelFit not generating a model without the use of “BestFit”, not sure why [duplicate]

This is my first time using NonLinearModelFit and I have run into an issue that I can't find an explanation for. The fitted model contains a ...
3
votes
8answers
250 views

How Do I Perform Simple Operations On The Elements of a Table?

I have been using the function HistogramList to generate frequency tables off a data set. The code looks like this: ...
2
votes
2answers
85 views

How to interpret and show an input number with the amount of significant digits given?

what can I do to have Mathematica intepret and show a number with exactly the amount of digits I gave as an input? I have a larger talbe with numbers (text file, whitespace seperated) which are ...
8
votes
6answers
485 views

How to set precision and format labeled Slider in Manipulate?

For my calculations, I need increased precision of parameter 'k' in my Manipulate: ...
9
votes
5answers
345 views

Count consecutive occurrences in a list above a certain value

I am trying to tally and sort the number of consecutive occurrences in a list above a certain value. For instance: ...
1
vote
1answer
151 views

Create continuous function from list

I have a list of data (measured per day) that I want to use as imput for another equation (say f). The problem is that the input I need for f needs to be a continuous function of time. Is it possible ...
3
votes
2answers
113 views

Moving a locator based on the movement of another

My problem is: I want two Locators to simulate a vector in the following sense: The first Locator is the base and the second ...
22
votes
0answers
217 views

Managing Stack Exchange favorites via Documentation Center

My Stack Exchange favorites are getting bigger and bigger. It is becoming unmanageable and is getting hard to find what I look for. A related question is Sort favorite questions. Is it possible to ...
2
votes
1answer
307 views

Legends for multiple curves

Dear users I am a new member here and I would like to ask a question about PlotLegends. I have multiple curves and want to make their legends bit more visible. ...
2
votes
1answer
93 views

Set a path relative to $UserBaseDirectory in the option inspector

Is there a way to set a setting in the option inspector to a path that is relative to some global Mathematica variable? I'm trying to set up a default stylesheet by setting ...
1
vote
2answers
584 views

How to generate a random matrix with specific parameters?

I want to use Mathematica to generate a random matrix with given dimensions, entries coming from a finite set, and with a determinant also coming from a finite set. (It's very important that the ...
18
votes
7answers
816 views

Make a huge vector in a wise way

I need to construct a vector similar to: v[x_]:={0, 0, x, 0, 0, 2*x, 0, 0, 3*x, ....., 0, 0, n*x}; where n=10^9. How can I ...
1
vote
1answer
52 views
0
votes
0answers
116 views

Some questions about Integral Equation

I am trying to solve the finite Hilbert transformation like the following form $ f(x)= \frac{1}{π} \int_{-1}^{1} \frac{g(y)}{(y-x)}dy $ the given function f(x)=1 and I want to solve the g(x) I know ...
23
votes
2answers
413 views

eigenvector bug?

This bug was fixed in version 10.0.0 I have a fairly simple $3\times3$ complex matrix, $$ M=\left( \begin{array}{ccc} \frac{7}{2}-\frac{i}{2} & -1+i & \frac{1}{2}+\frac{5 i}{2} \\ -1+i ...
2
votes
2answers
223 views

Writing a function that returns a (usable) function

I am trying to create a function that returns Arnold's Cat Map of size n iterated k times. I can get something out of the Function command, but I can't figure out ...
17
votes
1answer
354 views

Underlying Algorithms for List Manipulation Functions

Does anyone know, or know of a link for the underlying algorithms used for list manipulation functions? Specifically: Union with and without the ...
2
votes
1answer
198 views

How to select TransformationFunctions based on Assumptions made when using Simplify?

I am re-writing the question using a very simple example so not to confuse matters with the another question being asked where I used the example from there. In general, how to add logic to switch ...
2
votes
1answer
62 views

Followup question from "Temporarily redirect output of Print[ ] to a second file

I'm implementing the first answer to my earlier question about redirecting the output of Print[ ]. Opening a file with OpenWrite[] and assigning the stream to ...
4
votes
1answer
164 views

Can BoxWhiskerChart show both the median and outliers at the same time?

Is there an easy way to make BoxWhiskerChart show both the outliers and the median line? g1 below shows outliers but not the ...
2
votes
1answer
122 views

How to use TransformationFunctions on a compound expression?

I was trying to answer this question but having hard time with the correct way to write the transformation rule. Trying to write a rule to transform ...
3
votes
2answers
247 views

Replacing gamma at half integers by double factorial

It is well-known that for any positive integer $n$ the equality $\Gamma(n+\frac12)=\sqrt\pi\,(2n-1)!!/2^n$ holds, where $!!$ stands for the double factorial. I am using ...
3
votes
2answers
1k views

Command line execution of Mathematica notebooks and conversion to .m

Sometimes one may want to execute a notebook via the command line (for example to run it remotely). As far as I know it's not possible to run notebooks directly, but ...
1
vote
4answers
195 views

How to use If to select arguments min & max in Range?

I want to call Range[] with its arguments depending on a condition. Say we have ...
2
votes
0answers
89 views

Speed improvement in string distance function

I'm using this distance function to compare distance between strings: ...
3
votes
2answers
134 views

Create a new window from CDF, such that it contains a Manipulate. Force this Manipulate work.

I have a notebook with such a button creating code: ...
5
votes
2answers
424 views

Volume of a graph

I have the following list: ...
4
votes
1answer
122 views

Running unit tests while debug session is running in Workbench

Is it possible to run unit test while a debug session is already open in Wolfram Workbench 2.0? A typical use case follows: I have a debug in Workbench session open. I evaluate some cells in a ...
8
votes
3answers
685 views

Checking for duplicates in sublists

I have a list with contains entries that are length 8 sublists,i.e. L1={{a1,b1,c1,d1,A1,B1,C1,D1},{a2,b2,c2,d2,A2,B2,C2,D2},...} and so on. Now, in my problem two ...
1
vote
0answers
174 views

Having Mathematica solve or help solve a set of 8 equations

There is a set of DDE's that arise in leukemia dynamics and I'd like to find the equilibrium points of the system by setting all of the derivatives equal to zero. The system can be described in ...
3
votes
1answer
484 views

Using SimMetrics Java Function on Mathematica

I would like to know if it's possible to use/install this java library on Mathematica. This library, named SimMetrics, has a lot of string similarity functions that I would like to test. Here is the ...
3
votes
2answers
293 views

How do I use Mathematica as a vector drawing program?

Recently I changed my furniture in my room and I am trying to find the best position of each part. I am sure that Mathematica could help! I read the LocatorPane, selecting multiple Locators for ...
4
votes
4answers
162 views

Change the colour of a ListPlot element in each iteration of Manipulate

I would like to modify the colour of dots in a ListPlot[Table[function]], e.g ...
5
votes
1answer
350 views

Efficiently generating histograms with large numbers of bins

I'm trying to generate a histogram for a large data set with the following lines of code: ...
8
votes
6answers
211 views

Custom Matrix product

I have a list: list1 = {{{a1, a2, a3}, {b1, b2, b3}}, {{c1, c2, c3}, {d1, d2, d3}}}; I want an operation that gives me: Is there a built-in way of doing ...
0
votes
2answers
153 views

Inverse function

What probably could be the inverse of following function? ...
4
votes
1answer
131 views

15 30 50 per page