# All Questions

124 views

### How to find if x-y point falls within a closed BSplineCurve

Here's a simple Manipulate with a closed BSplineCurve, and a Locator. ...
179 views

### Comparing exact expressions for equality — is it really OK if I get wrong answer?

Bug introduced in 7.0 or earlier and fixed in 10.2.0 I found an unexpected behavior (that I think of as a bug) in evaluation of the equality operator applied to mathematical functions with exact ...
125 views

### Animating a parametric plot

I am attempting to animate my parametric plot, but am having difficulties. I tried simply wrapping the plot code with an Animate[expression,{t,0,5}], but that ...
94 views

### How can I connect a curve to a point by a straight line?

I have a curve in space, already plotted: ...
252 views

### How to make sure polygon is drawn flat in 3D?

Bug introduced in 8.0 or earlier and fixed in 10.4 I'm working on this SE question about pentagrams on top of dodecahedron for exercising. Both solutions are basically connecting different sets of ...
145 views

### Is it possible to update Dynamic objects even when they are off screen?

I am using Dynamic and DynamicModule to display graphics/statistics generated from a long-running set of parallel tasks. The ...
54 views

### Variable name with subscripts in Manipulator[], is it possible?

I'm trying to create a variable in Manipulate[] with a subscript in its name with the following code: ...
113 views

### Both FindMinimum and NMinimize have trouble

I'm trying to minimize a function I wrote, in a not entirely elegant (but functional) way. As a side note, if you have advice on how to write this in a smarter way, that's also welcome. In any case, ...
120 views

### why does replacement rule not work

Why does the following replacement rule not work? term = x^2/y^2 + x^3/y^3 term /. u_^p_/v_^p_ -> z^p I expected it to return ...
36 views

### What's difference between MathKernel.exe and WolframKernel.exe? [duplicate]

Recently I installed Mathematica 10.1 and noticed two different files (they have the same length, but different hashes) in the installation folder: MathKernel.exe ...
494 views

### Interactive Mandelbrot Zoomer?

I want to combine Manipulate with ManbelbrotSetPlot just to get Mathematica to give me a quick and dirty Mandelbrot Zoomer. I want to be able to single/double click on a section, and have it zoom in ...
449 views

### Error “Throw::nocatch: Uncaught Throw[False] returned to top level” given each time I open a new Mathematica 10.1 session

Bug fixed in 10.1.0 via paclet update From a few days now each time I open a new Mathematica session I get the small error messages window with the error ...
113 views

### Privilege Violation

I am working with a file that is about 400Mb. The intent is to read in the information, transform the data and output to a new file. Before writing to a new file, the directory is checked for an ...
296 views

### Piecewise Function within NDSolve

So I am quite new to Mathematica and programming in general and I am running into an issue while trying to use the numerical diff eq solver (NDSolve) within mathematica. This is what my code looks ...
70 views

...
80 views

### Failure in the use of FullSimplify

My question is about an apparent failure of the function "FullSimplify" to simplify an easy algebraic expression. This is the expression that I ask Mathematica to evaluate: ...
335 views

### Plotting random circles in a square

How can we draw 20 circles which have random radius in a specified range, with random positions. All centers must be in a square with side=10 (for example centimeter): every overlapping between any ...
117 views

### How to create a smile animation in Mathematica?

I want to create a yellow smile, with normal mouth which smiles in cycle. I only know that I need to use CDF player and Manipulate, but do not have any idea how to do that. Thanks!
278 views

### How to compile this function

I want to compile my function that calculates the energy of a particle system. This is what I've tried: ...
41 views

### Defining a function in terms of a solution returned by Solve

The title is a little ambiguous, but I didn't know how else to put it. What I'm trying to do is solve a system of equations ...
116 views

### Superimposing ListLineIntegralConvolutionPlot with transparent noise over ListContourPlot

I have an array of 128x256 data points in a rectilinear array. For each point there is a 2D vector quantity and a scalar quantity (normalised to -1 <= x <= 1). I very much like the ...
106 views

### How to write a pattern that matches all functions

What is the correct way to match a function in an expression in the way that Cases[Sin[x] Cos[x], _Sin | _Cos, {0, Infinity}] matches ...
452 views

### How to improve performance of BesselJ to the level of GSL?

Consider the following code: zs = N /@ Range[0, 12, 10^-5]; AbsoluteTiming[bessels = BesselJ[1, #] & /@ zs;] Length @ zs I've tried to measure only ...
84 views

### Orderless storage of tabulated function values

I would like to elaborate on my previous question Function of arguments given in non-fixed order and a relevant related one Best practice of passing a large number of parameters to functions I find ...
25 views

### PolynomialGCD in complex numbers for vector simplification

I wanted to define a function $f(t,\vec{r})=e^{i\omega t-i\vec{k}\cdot\vec{r}}$, and take gradient of it. With, ...
228 views

### Strange Boundary NDSolve Problem

Mma10.1 doesn't work with the following boundary problem: ...
80 views

### What is a good way to check what kind of a function a function is?

i want a module or function or switch or If (whatever works), what asks if a function is an e function or a polynomial(a hole number one or fractorial), a exponential function, a logarithm function ...
163 views

### How to fill the closed region by ParametricPlot with solid color?

I am interested in the following implicit curve with parametric equation: $$\left\{\quad \begin{array}{rl} x=& 9 \sin 2 t+5 \sin 3 t \\ y=& 9 \cos 2 t-5 \cos 3 t \\ \end{array} \right.$$ ...
72 views

### Ordering in noncommutative multiply

I have an expression like s ** p1 ** p1 ** p2 - s ** p1 ** p2 ** p1 Which should be zero because the commutator between p1 ...
388 views

### Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
90 views

### Use FindRoot to get the root with minimum imaginary part

For example, define test[z_] := Cosh[0.5132928614530164 z] + 0.5934823341977118 Sinh[0.5132928614530164 z] And ...
127 views

### Actual bins used for Pearson Chi Square Test

PearsonChiSquareTest[data, dist] computes bins for data as a step towards calculating the test statistic. For continuous ...
263 views

I hope this is not a silly question, since there are plenty of questions on Thread and MapThread. However, I still cannot quite ...
127 views

### BarChart3D: varying individual bar color

I've been working with a chart like so: ...
143 views

### Computing Reversible CA with CellularAutomaton

This computes and plots 127 steps of the evolution of 150R (the reversible version of rule 150). ...
85 views

### Problem with writting into a matrix in Mathematica [closed]

I have declared a matrix using S = ConstantArray[0, {246,246}] And when I try to write into it by a loop I get the following error "Tag Times in 0\ Null is ...
69 views

### Mathematica SQL command that counts records in table

Is there a DatabaseLink command other than SQLExecute that can be used to count the total records in a database table?
645 views

### How to draw a dodecahedron with each face modified to a pentagram?

I'd like to draw a dodecahedron with each face carved on the sides so it becomes a pentagram. I wonder how to start to do this kind of task in the Wolfram Language? Edit: The result should still be ...
209 views

### Precision while calculating Fourier transform

I'm trying to understand how precision works in Mathematica. Particularly I'm calculating discrete Fourier transform using the Fourier function and calculating it ...
65 views

### Plot and Row margins not following ImagePadding and ImageMargins?

I have a collection of data that I need to show information, shape, and summary stats. I have a layout that I am happy with but it contains a lot of bank space between the items. For the plots I am ...
372 views

### How to programmatically ask if Mathematica is running as an Administrator

To avoid execution problems in a program I need to know if Mathematica has been "Run as administrator". What would be the cleanest way to programmatically getting this information?
102 views

### when two associations are equal?

<|a -> 2, b -> 3|> == <|b -> 3, a -> 2|> returns False; can anybody explain why? If I am not mistaken ...
47 views

### Unexpected behaviors with Edge Weights

Noticed some bizarre behavior when subgraphing on weighted graphs, which probably extends to graphs with arbitrary edge properties. I construct a weighted graph with five edges, defining a specific ...
127 views

### How to plot points using ParametricPlot3D?

I have the following Mathematica code: ParametricPlot3D[{{0 + 0*t, 10 - 1*t, 9 - 1*t}, {7 - t, 7 - t, 6 - t}, {0, 0, -1}}, {t, 12, -20}] The last "parametric ...
285 views

### Plot a function on a restricted domain

I want to plot a function $f:\mathbb R^n \rightarrow \mathbb R$ restricted to a domain $D \subset \mathbb R^n$. The domain $D$ is usually specified as the set of zeros for a set of polynomial ...
55 views

### Multiplying two parametric solutions

I'm solving two (1-parameter) differential equations and I want to plot the product of their solutions, how do I do this? Here's the code, ...
47 views

### Issue with Table [closed]

I have a quick question about using the table command in mathematica. Suppose that I define ...
65 views

### List manipulation performance or how to make independent list copy

I have a task to solve some system of equations with NSolve and print graph of it, depends on parameters. Something like this (maybe it is not a good example and does not always have a solution, but ...
119 views

### Formatting the results from solving a differential equation

{{x[t] -> 600 (t + I π t - 50 Log[50] + t Log[50] + 50 Log[50 - t] - t Log[-50 + t])}} After solving a differential equation, I get an answer in a form where I ...
37 views

### Orthographic view (top,bottom,left,right,rear,front) and Isometric view using ViewMatrix [duplicate]

I want to know how to obtain the orthographic view (top,bottom,left,right,rear,front) and Isometric view using ViewMatrix. I read the ViewMatrix documentantion but couldn't figure out how to do it.

15 30 50 per page