# All Questions

54 views

### Writing a procedure that invokes Manipulate[]

I would like to write a procedure with the signature: Foo[vars, params] which produces a Manipulate object. The procedure ...
56 views

### LayeredGraphPlot Vertex Spacing

For anyone who has used LayeredGraphPlot, you have probably seen that the vertex spacing is consistent throughout, that vertices have the same minimum unit of ...
58 views

### Code reuse between files in the same directory

At the moment, I am producing various complicated interactive plots. They all share a common "code base", with modifications on top of it. I would like to refactor my code so that the various files ...
43 views

### “cannot be used as function” error. Mathematica 9 [on hold]

I am trying to use Mathematica do solve a system of differential equations through a series. For the time being, I want the solution to be in terms of a quadratic. So here is an example, ...
44 views

### How to continuous apply a function to an argument? [duplicate]

In order to calculate x = sqrt(1 + x) for a given number x, 40 times, I tried this: ...
45 views

### Simplifying square root expressions

I have read lots of questions on square root simplification on MMA, but I haven't really seen my problem posted (or understood a clear way to deal with this issue). I am simplifying some expressions ...
47 views

### Form a matrix to have inequality elements

It looks like a silly question, but I could not find any answers online. Your help is greatly appreciated! Say I have two lists now. ...
59 views

### Cases Except - Selective Exclusion

Please help me use Cases,Except on list data. I just want to remove all primes, or equivocally to see only the values in the list produced that aren't prime. the prime factorization of those values ...
49 views

### How to subset datasets in Mathematica 10 [on hold]

I'm sorry if this is obvious but I can't find a way to select only a certain amount of columns of a dataset (or delete a certain amount of columns from a dataset) using the key of each column. I ...
28 views

### Does Mathematica support Laguerre Polynomials of Matrix Argument?

I am wondering whether Mathematica can also compute the Laguerre polynomials of matrix argument as the appear in multivariate statistics? For example, they appear in this paper here: ...
26 views

### Porting Module from one version of Mathematica and platform to another [on hold]

I recently wrote a Module in Mathematica v9.0.1 on OS X, and tried to run it on Mathematica v10 for RPi Raspbian Linux. Sorry if this belongs in the RPi SE. ...
63 views

### Strange appearance artefact in ActionMenu

I've noticed a strange thing with ActionMenu which can also be seen in the documentation for V9 and V10 on OS X. It seems that when an ...
46 views

### Is this caused by meomory usage ? (Something odd/hard to describe)

I really can't make a "smaller" example, but the files are here, for the data and for the notebook. It will cost a LOT of memory, up to 30G of RAM (maybe more). Here is the problem, (from a Linux ...
48 views

### System of differential equations [on hold]

I have to solve the following system of two differential equations with certain parameters inside which I just put them together for simplicity and called them t: ...
145 views

### Define Function with Sum over a list

I want to define a function that would symbolically look like $$t(s,\underline{a})=\pi s + \sum_{n=1}^{n_{max}}a_n\sin(n \pi s)$$ (something like a finite Fourier series). Here $s\in [0,1]$ and ...
35 views

Observe that ...
51 views

### Trouble using Manipulate and NDsolve for coupled ODE's

I'm aware that there are a few threads on the topic of solving coupled ODEs using NSolve and Manipulate. Based on those, I wrote the following code, solving my system of equations: ...
398 views

### Floating point operations — division vs multiplication; how do they affect accuracy?

Given two functions: f[x_] := x ((x + 1)^(1/2) - x^(1/2)) g[x_] := x/((x + 1)^(1/2) + x^(1/2)) Which one is more accurate? Side note: If you could explain why, ...
43 views

153 views

### Manipulate: How to create custom reset Button automatically?

I have a complex Manipulate with more than 10 controls. Each one has its own default value. I'd like to add a custom button in the control area to reset all ...
24 views

### How to change the default printing options using commmand?

I am looking for something like this: SetOptions[EvaluationNotebook[], "PaperSize" -> "A3"] The options are listed, but where do I find the arguments? Say ...
38 views

### Evaluate list of functions at a certain point

I have a list of functions (actually they are derivatives) of the type: {D[g[x,y],x],D[g[x,y],y]} I would like to evaluate all of these functions at a point, ...
13 views

### Error: The stream InputStream[…] has been opened with BinaryFormat -> False and cannot be used with binary data

Take a text file in your system, and execute file = OpenRead["path/to/your/file"] Then read a line from this file: ...
16 views

### Problem when importing EPS files created with Mathematica into TeX

I create a figure in EPS format with Mathematica. The graph of some function. Then I add some items to the figure (bullets, points, shaded lines, some math text). I save this in EPS format and ...
38 views

### Series expand root of quartic polynomial containing many real parameters and FullSimplify return Indeterminate

Using Mathematica I can get the Eigenvalues of the following matrix: ...
40 views

### Adding Assumptions changes the result of Integrate

When I try to calculate the following integral: ...
52 views

### Very slow solve and problem when solving in a nested for loop

I am using a nested for loop to solve a system of equation for {a, ga} for 2 varying parameters: here it's rm and sig. ...
23 views

### AspectRatio on ListLinePlot only considering ticks and not values [duplicate]

I want to plot some data in a ListLinePlot where the x- and y-values differ by at least 2 orders of magnitude. In this plot the x- and y- axis should not be scaled differently. This is the result that ...
23 views

### Solve and NSolve Parsing Error [on hold]

I've been using Mathematica to do simple line intersection solutions, particularly using NSolve. However, I've been running into the following bug recently. When trying to solve for the following: ...
82 views

### DeleteMissing issues [duplicate]

Has anyone had problems with the DeleteMissing function in Mathematica 10.0.2? I find that it rarely works. Most of the time it returns a list which still contains ...
34 views

### Subscript und Superscript in FrameLabel and Export

I'm creating plots that I want to export as png. Which works, but when I add sub- or superscript into the FrameLables or get 10^x in LogPlots the sub- or superscript letters in the exported png will ...
39 views

### How to prevent factorial from being evalauted?

Suppose I have: Do[Print[i/i!], {i, 1, 10}] I would like the output to be like: 1/1!, 2/2!, 3/3! , ...,10/10! However, when I use the code above the ...
88 views

### Deleting or replacing inner elements depending on higher level elements

Consider a data structure like: ...
46 views

### How to write the following subroutine in Mathematica and then how to call it? [on hold]

This is the routine wriiten in fortran i want to apply in mathematica as a subroutine and then want to call it where needed. I tried this one ...
55 views

### Plotting RandomVariates

I have simulated 10000 random variates from a copula distribution. I would like to plot them on a graph. How would I do this for a) If the random vector is 2 dimensional (so one on x-axis and one on ...
25 views

### BarChart with relative abundances as chart labels

I want to make the following bar chart, but with relative abundances on top of the chart labels. I get the absolute numbers, but not the relative abundances: ...
302 views

### I define a variable as local to a module BUT then the module uses its global value! Why?

I have a question about modules and local variables. Here's my example: h = 5; Module[{a, h}, a[h_]= h^2; a[4]] (*Out[2] = 25*) I expected the module to ...
44 views

### List of parameters to manipulate from an external list

I am trying to achieve the functionality of the following command: Manipulate[ z, {z, 0, 1}] but with passing the list of parameters into ...
87 views

### 3D plot of concave data set

I have the following data set ...
45 views

### What's the name of the default font used in Mathematica 10?

I really like the default font in Mathematica 10. So I would like to use it for my other applications. I tried to search for the name of the font, only found that a lot of people is talking on how to ...
50 views

I just installed Mathematica 10 on Windows 7 today. Everything works fine, except the shortcut Ctrl-V doesn't paste, it opens the "Find and Replace" dialog. I tried ...
73 views

### Assigning new value in association

I experienced a problem in changing values in an association and broke down the problem to the following: Given a list of association (here with one element): ...
43 views

### NIntegrate and Integrate of a Spherical Bessel function

I am trying to integrate over a spherical bessel function. I have used both the Integrate and NIntegrate functions in Mathematica but the values given by each do not match. Any reason why this ...
45 views

### Showing Legend in Wolfram Mathematica

The code below displays a histogram of the data and superimposes plots of five Weibull distributions for comparison. I have assigned colors to each Weibull curve in the distribution plots. How can I ...
312 views

31 views

### Show function doesn't plot two graphics [duplicate]

I've got a following code snippet: ...
38 views

### Piecewise function and integral function

Given a piecewise function f[t_]:=Piecewise[{{Exp[-1/t^2],t>0},{0,x<=0}}], I can define another function like this: ...
75 views

### How do I remove the quotation marks from each element of a list containing dates that I have import from excel?

I've been stuck in this problem for 1 week. I just want to make a graph (Log-Return vs time (in year, month, day)). The code is: ...