# All Questions

47 views

### How to view an image from command line?

I'm running mathematica in command line mode, but I need to view a graph/image, so I'd like to open an image with an X11 window to inspect an image: Is there an easy way or built-in command to to ...
28 views

### NMaximize — Error + Output

When I run the code, Table[ NMaximize[ {f[α, χ, τ], 0 <= α <= 2 π, 0 <= χ <= π}, {α, χ}, WorkingPrecision -> 10 ], {τ, 0.1, 2, 0.1} ] ...
49 views

### Why FinancialDerivative fails for the Spread case?

According to the documentation center for FinancialDerivative in version 10.4, when there are multi assets, we still may use ...
44 views

### Interpolating functions and Look-up tables

This is just a general question about how InterpolatingFunctions work: If I have a complicated function that I don't want to have to evaluate many times over, does turning it into an ...
114 views

### efficient elementwise multiplication of SparseArray vector and matrix

I have a large SparseArray $P$ of dimensions $\{d,d\}$ and I want to multiply a vector (also a SparseArray) $v$ of length $d$ ...
19 views

33 views

### NMaximize and FindMaximum — Two Different Results

I have the following code in my preamble: ...
89 views

### Help with GeoRegionValuePlot

I am trying to get a map with 4 colors, I have several regions with values from 0 to 3 and I want to color those regions with value 0 in white, with value 1 in yellow, with value 2 in orange and with ...
69 views

### Improve speed of Nested Matrix exponential

I have a short Code example and I want to know whether it is possible to improve the speed. The L matrix in my code is a SparseMatrix, but for this question I just use something similiar. ...
133 views

### BoxWhiskerChart with logarithmic axes 2

I actually already found my answer on the question, however it is not working. see BoxWhiskerChart with logarithmic axes I want to create a boxwiskerchart with a logaritmic axes. But when I try <...
290 views

### Average dataset with many repetitions?

I have a dataset where each item is of the form: <|"p1" -> x1, "p2" -> x2, "r1" -> y1, "r2" -> y2|> The interpretation is this: ...
1k views

### How can I plot a loxodrome?

Can someone show me how to plot a rhumb line (loxodrome) in Mathematica via the ParametricPlot3D function? Here is what I got so far: ...
1k views

### Peirce's quincuncial projection

The Peirce quincuncial projection is the cartographic projection of a sphere onto a square. In short, I would like to see it implemented in Mathematica. Here is my code: ...
62 views

### Metric Simplify & grouping

I'm changing a basis from one metric to another. When simplifying the result Mathematica doesn't seem to grasp all the possible simplification: ...
11 views

### Logic or mathemathic sequence [on hold]

[10,2,4,6,2,8,5] Can someone tell me the logic behind this sequence? It was a question on a magazine without the last number - 5 - but i can't find any logic.
19 views

### lyapunov versus coupling parameter [migrated]

i need a plot of lyapunov exponent versus coupling parameter graph for lorentz system.using the matlab program i got lyapunov versus time graph using programme below function ...
53 views

### Is every menu command equivalent to a command that can be executed within a notebook?

If so, is there a directory which gives the in-notebook command associated with each menu command ? In particular, I would like to know how to replicate the menu command Evaluation -> Quit Kernel -> ...
35 views

### Part command in a matrixform [duplicate]

I do have a MatrixForm a table which I would like to pick just a part of it. Is it possible to somehow command part[[]] for a <...
26 views

### Please check my code for gauss elimination and rectify the mistake [on hold]

clc; clear all; prompt = 'Enter No of Unknowns \n' ; m = input(prompt) ; a = zeros(m,m) ; x = 0 ; for x = 1:m for y = 1:m prompt = 'Enter element(x,y) \n' ; ...
72 views

### Passing values from a list to Select during a Dataset query

Given a Dataset: ...
145 views

### How do I define a two point random variable?

How do I define a random variable $X$ such that $Pr[X=x_1]=p_1$ and $Pr[X=x_2]=p_2$ where the values $x_i$, $i=1,\,2$ are just symbols and the probabilities $p_i$, $i=1,\,2$ are symbolic expressions ...
27 views

### Using RegionFunction with non-trivial Inequality

So I have been using ContourPlot to plot the zero set of a fairly unwieldy function, with many intersecting components. There's really only one of these components ...
68 views

### How to access box-and-whisker specifications from custom ChartElementFunction?

I am creating a custom ChartElementFunction for BoxWhiskerChart. I would like to access the box-and-whisker specifications from ...
37 views

### Problem with “FrameLabel” when specifying Superscript, Italics, and Times (font)

I'm using FrameLabel to create the label "ln p'(t)" [which is, natural log of the function p'(t)]. This is to be publication quality, so I specify Times font, and Italics (see below). But the "prime" ...
109 views

### Bug with Compile and Log2?

It seems that Log2 in Compile gives numerical errors (CompiledFunction::cfn) if the input is ...
24 views

### With regards to the LogLogPlot on Wolfram alpha [on hold]

I plot Logplot for a function , it comes out nice, however when I plot the log log one, it doesn't work, Here are the images. Can someone tell me what's wrong here.
88 views

### How to create a window which will close in a certain amount of time?

I'm currently making an interface in Mathematica and I'll need to bump a window out and then let it close itself in a certain amount of time. Here's an short example to illustrate the effect: ...
32 views

### Solving Inequality with Exponentiation and Log [on hold]

I have an inequality that I am not able to proove which is $Log[d] <\frac{(-1 + d^M) (d^M - d^N) N} {d^{M}(-1 + d^N) M (M - N)}$ with $0<\delta<1$, $M\geqq1$, $N>M$ and thus $N>1$. I ...
38 views

### Troubles with showing axis after saving in EPS

I'm trying to save a picture in EPS and then to put it into my LaTeX document. But when I put it the left axis is not shown. How do I fix it? (look at the screens) If I save the image in JPG, there'...
24 views

### Weird bug with Esc, string, and underscore?

There seems to be a bug with esc key, strings, and underscores. For instance, see the following code: a = f["1_2"]; If an esc character is typed anywhere ...
38 views

### Inverse Laplace Transform Failing: $\frac{1}{\exp (\beta \tau )-a}$

I have tried various approaches to get the solution to this inverse transform but all so far are failing. ...
29 views

### 3DPlot, Logarithmic x and y axes, Interpolating function

I've used NDSolve to get an InterpolatingFunction that solves a certain difeq. I want to see the behavior of this function on a couple different scales, so I want to use some sort of Log Plot. For a ...