12
votes
1answer
1k views

Thickness of logarithmic tick marks

Bug introduced in 8 or earlier and persisting through 10.4 or later I'm trying to plot a graph wit a logarithmic y-axis. Since I'm exporting the graph to pdf and later printing it, I want to ...
2
votes
1answer
368 views

Make a scatter plot

Considering I have weather data for last 10 years for London, how can I make a scatter plot that will show the previous day's temperature as a function from today's temperature?
2
votes
1answer
312 views

Finding average error of the data

Considering I have some data, and I want to fit the data to a linear fit and find the average error from the linear fit, how can I do that using Mathematica? I have ...
2
votes
2answers
123 views

How can my Manipulate be aware of a local variable inside a nested Module

I have 3 sets of 5 x-y points: RandomInteger[10, {3, 5, 2}] I want to display only one set of points at a time, and use a slider to move on to show the next ...
3
votes
1answer
222 views

FullSimplify ratio of two gamma functions

I have the following input m = 2; Gamma[n + m]/Gamma[n + 1]; FullSimplify[%] It gives me 1+n For ...
7
votes
1answer
1k views

How to solve fluid flow problem based on Navier-Stokes equations?

Does anyone know or can provide any examples how fluid flow problem can be formulated and solved in Wolfram Language? Simplest cases of 1D or 2D flows based on Navier-Stokes equations or even their ...
2
votes
2answers
139 views

Improving the speed/efficiency of multiple (finite range) convolutions for a causal response plot

So I am looking at modelling the response of a system that is excited by multiple pulses over a period of time. The way to find the response at time t is to take the convolution between the impulse ...
0
votes
1answer
90 views

how to use Tooltip with a Dynamic point

consider this example: ...
1
vote
3answers
172 views

Random reals according to conditions

I'd like to create a list of triplets $(x,y,z)$ which satisfy the following properties: $$0<x<1/2 \\ 0<y<1/2-x \\ -1<z<-2(x+y)$$ Basically I would like to uniformly generate random ...
1
vote
1answer
140 views

How to “merge” various graphics 2d into one 3d graphic? [duplicate]

I did some calculations and as result got a 2D graphic, but at the beginning of the work I used a constant parameter. What I want is to make a 3D graphic with this parameter as an axis, varying from 1 ...
20
votes
3answers
3k views

Convert spectral distribution to RGB color

Presume I have a spectrum as a function of wavelength (an example being the blackbody spectrum): I want to convert that to a single RGB color to display on-screen, i.e. the "color" of that object ...
8
votes
3answers
677 views

How can one draw a network with nodes and links in a grid shape?

I'd like to be able to use MMa's graphics to make something like this which I know must absolutely be possible (and probably easy) with MMa. I don't actually even need different colors (though ...
4
votes
1answer
89 views

How to copy text from InputField without adding spurious spaces?

The problem happens when you copy text from an InputField and paste it into another: Mathematica inserts spaces in unnecessary places, such as around any ...
8
votes
3answers
192 views

Complex result for Real vectors in VectorAngle

I was expecting a real angle using VectorAngle when passing real valued vectors, but I obtained a complex angle: ...
2
votes
1answer
140 views

Get rid of “Testing Notebook” toolbar

I was messing around with different styles and tried the MUnit style. I converted back to Standard Report but I still see the toolbar for testing notebook. Is there a way to get rid of it?
8
votes
1answer
202 views

Why am I getting a kernel crash on Chop?

Solve bug (see answer) introduced in 9.0 and persisting through 10.2.0 First post, hopefully I figure out the formatting easily. Please forgive me if this posts ...
5
votes
1answer
204 views

How can I make a “self-referential” replacement operation self-contained?

Fairly often I find use for replacement rules that call themselves on the right-hand side of the rule, e.g.: ...
5
votes
1answer
1k views

Test a wooden board's vibration mode

Here is a wooden board, with dimensions shown on the picture below. How we can use Mathematica's newly build-in finite element analysis features to show the different modes of its vibrations. Assuming ...
1
vote
3answers
165 views

How to ReplaceAll independent of depth?

I have a big list which in principle can be described as this more compact list : ...
2
votes
0answers
214 views

How do I choose only one branch of ArcTan?

I have a problem concerning ArcTan drawing a graph using ListPlot. I import a table of data: ...
0
votes
1answer
186 views

Plotting 2D color function on the plane [duplicate]

Suppose p is a some point in the plane. The function f[q] defined as ...
4
votes
0answers
156 views

Is it possible to Compile the function with string argument? [duplicate]

As we can see from the Compile documentation, the typical arguments for Compile should be ...
4
votes
2answers
497 views

Using compiled function inside NMinimize

Consider this code: ...
2
votes
0answers
246 views

Download a notebook (or any type of file) from the cloud

Let us say that I have a Notebook in the Wolfram Programming Cloud called foo.nb. If I try CloudGet["foo.nb"], what I get back ...
2
votes
2answers
210 views

How to use Compile

Consider the code below: variable = Sin[x]; fun = Compile[{x}, variable ]; fun[1] When I do this I get the error: ...
1
vote
1answer
86 views

Faster code for solving an equation with parameters

I am new to Mathematica and wanted to solve an equation that depends on parameters. The code is below ...
2
votes
0answers
84 views

Adding an unused column creates an error in JoinAcross

I'd been having trouble using JoinAcross on two datasets. After going through the answers to my original question and fixing my code, I find I'm now having a ...
3
votes
0answers
58 views

Create custom mappings of Mathematica Expressions => Java Objects?

I would like to call a JLink-based java function from Mathematica with a Mathematica Span[] object as shorthand, like so... ...
4
votes
1answer
178 views

Missing functions in the Raspberry Pi V10 release

There are a few Mathematica users beside myself that are running it on a Raspberry Pi, and we found out it does not always perform the same as the Desktop version [1][2]. During the testing of the ...
4
votes
1answer
289 views

Removing Linear drift from an oscillating data

I have an array of 800,000 data measured at 1.1s time gap. It is oscillating data but has clear linear drift. I want to remove this linear drift. But the estimates by ...
2
votes
3answers
350 views

How to obtain non-trivial solution of equal ratios

How can I obtain a non-trivial solution of the following: $$\frac{a}{b+c}=\frac{b}{c+a}=\frac{c}{a+b}$$ The answer is $a=b=c=1$.
0
votes
3answers
207 views

Avoid creation of OwnValues when inserting transformation rules into Experimental`OptimizeExpression

I have a large list of transformation rules that I want to simplify. I find Experimental`OptimizeExpression works as it gets me the answers. My question is: I ...
0
votes
0answers
62 views

How to extract data from a plot? [duplicate]

Here is the equation I want to plot, ...
4
votes
1answer
95 views

Evaluating standard functions of general quaternions symbolically

Mathematica can easily compute exponentials and logarithms of concrete quaternions: ...
7
votes
0answers
250 views

Does a running evaluation continue after the PC wakes from sleep mode?

Are there any issues with running a process on Mathematica, putting the computer to sleep, and then waking the computer sometime later? It seems to work just fine on my test process (appending data ...
8
votes
2answers
179 views

Issue with Mouseover within Geographics

When using Graphics, I can change the color of the object with the use of Mouseover. ...
1
vote
0answers
58 views

Is there any metadata-holding mechanisms in Mathematica programming similar to Java annotations?

I'm re-implementing some tools previously implemented in Java in Wolfram Language. Is there any metadata-holding mechanisms in Mathematica programming similar to Java annotations?
3
votes
1answer
171 views

Space around indices in Mathematica 10

When i write something like f(x_0) in traditional form mm puts white space around the index, so that especially the distance to the end parenthesis looks weird. In mm 9 I could reduce the issue by ...
0
votes
1answer
94 views

Matrix consisting of the matrices [duplicate]

I need Dirac Matrix in my work. They consists of PauliMatrix and ZeroMatrix, which is: ZeroMatrix:=IdentityMatrix[2]-IdentityMatrix[2] I define Dirac Matrix as: ...
2
votes
1answer
109 views

How to explain the behavior of Rule inside these functions [duplicate]

I'm trying to define a function that takes an expression and spits out a pure function involving a replacement rule of that function's variable. An example would be a function ...
2
votes
1answer
386 views

How to make a stereogram in Mathematica? (2)

Given a tiled background and a depth map, both of the same dimension, I tried to produce a stereogram using the following codes which was adopted from the method given by Simon Woods, but in a ...
50
votes
1answer
1k views

Is this 30% slowdown in Mathematica 10 due to DownValues lookup time?

Running several numerical self-programmed packages I realized already some time ago that Mathematica 10 needed between 20 and 40% more time. I did already report this of course with a simple example ...
7
votes
3answers
211 views

Dynamically transform one Graphics to another

I would like to have two Graphics objects displayed side by side such that: they are mirror images of each other if I change the left-hand one interactively using ...
11
votes
5answers
2k views

How to make a depth map from a 3D model?

Given a 3D .obj model, for example a rabbit. How can we make a depth map out of it? Any idea or help would be much appreciated.
5
votes
1answer
94 views

Edit built in symbol

I would like to add new attributes to built in symbols (e.g. ElementData or PolyhedraData) so that I can still call the symbol ...
4
votes
1answer
166 views

Generate a dynamic interface with sliders out of a list of rules

I would like to generate a function which takes a list of rules as input and generates sliders which are altering the values of the list. Then I would like to use this function in an dynamic module as ...
16
votes
3answers
763 views

Export dataset to JSON including Unicode Characters

I'm experiencing a weird issue. Consider a dataset defined like this: dataset = Dataset[{<|"a" -> 1, "b" -> 2|>, <|"a" -> 3, "b" -> 4|>}]; ...
9
votes
2answers
283 views

Median of Dataset in Mathematica 10

Bug introduced in 10.0 and fixed in 10.3 I'm having trouble calculating the median of a Dataset[] in Mathematica 10. The situation is as follows. Consider a ...
4
votes
1answer
244 views

Extract data from WeatherData as a list of associations

Given weather data for 2013 and 2014 as follows: ...
0
votes
2answers
91 views

Solve simple differential equation - Error?

I get the error "The function Te appears with no arguments." when running this code. I'm not sure why. Is it because of the $Abs[\Gamma]$ ? ...

15 30 50 per page