# All Questions

3 views

### Equality of Reciprocal with Negative Exponent

I want MMA to tell me if two, rather large, expressions are equal. My minimum working example follows. I want MMA to tell me that the following is true:$$x^n = \left(\frac{1}{x}\right)^n$$ I have ...
76 views

### ImplicitRegion gives arbitrary boundaries

This question uses Mathematica 10.2.0.0. equation1 is the major unbounded region I would like to generate: ...
144 views

### FullSimplify wrongly reduces expression to zero

Bug introduced in 9.0 and persisting through 10.2 or later I get the following output with a fresh Mathematica (ver 10.0.2.0 on Mac) session ...
12 views

### How to get a region to an element mesh? (E.g. ToElementMesh[R], but doesn't seem to work.)

ers, I've been exploring a new 3D solid commonly called the "Chestahedron" (7 faces of equal area). I wanted to find the centroid, so turned to Mathematica... and found it!:) Other things of interest ...
212 views

### How to simplify only the lowest level of a nested expression

I have a large expression that takes forever to simplify if I apply FullSimplify[...]. The expression has lots and lots of brackets that luckily already groups ...
20 views

### Clean & efficient bounding box non-intersection test

I would like a quick test to tell me that segments $ab$ and $cd$ cannot intersect in the plane. If the maximum $x$-coordinate of $a$ and $b$ is less than the minimum $x$-coordinate of $c$ and $d$, ...
57 views

### How should I iteratively refine a MixtureDistribution?

I am trying to find a stopping time for a randomized simulation such that say 95% of trials that will be successful will have already finished. I would like to do this by creating and then refining ...
364 views

### Mathematica complaints that convergent integral diverges

Bug introduced in 10.0 and fixed in 10.0.2 Trying to do the integral ...
243 views

### Problem with Neumann condition in quarter disc

Bug introduced in 10.0 and fixed in 10.2 So I'm following the available examples in version 10 for FEM, The plane stress operator is shown as this ...
567 views

### Why is TextString[-0.5] a positive number?

Bug introduced in 10.0 and fixed in 10.0.2 I want to format numbers in decimal notation and chose TextString for this task. But today, when looking at the final ...
145 views

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

Bug introduced in 9.0 or earlier and persisting through 10.2 or later I'm working on this SE question about pentagrams on top of dodecahedron for exercising. Both solutions are basically connecting ...
53 views

### redefining a built-in operator

Is there a way I can redefine the || operator such that a||b will be 1/(1/a + 1/b)? Is it ...
103 views

### Difficulty using LUDecomposition

I'm having trouble using LUDecomposition with pivoting. I read the Mathematica help on this particular command, but I'm still lost. Take a matrix like: ...
29 views

### Once working code fails upon restarting Mathematica [on hold]

I had a code which worked flawlessly, then upon shutting down mathematica and re-starting it, the code failed with the following error message: "The function value -Abs[f[0.0228659,I/6]] is not a ...
24 views

### choosing the number of points in FindFit function [on hold]

I am trying to find the best function to fit a set of data as following, ...
9 views

### Probability Quesiton Help [migrated]

I am working on some exercise questions from probability. I am stuck at this question. Can somebody help me to solve this. I would really appreciate. In a certain country, 35 percent of people are ...
4 views

### How to write this Google docs, percentage calculation function? [migrated]

I track my diet (macros) in Google docs. For 1 day my protein is 114.63 carbs 194.75 and fat ...
20 views

### Hook Length Formula and Ferrer's Diagram

So, I am new to using Mathematica, and trying to write some code that needs to use hook length of each cell in Ferrer's diagram of a partition. I first thought of using for loops to manually count ...
106 views

### Dirichlet convolution of two lists [closed]

The Dirichlet convolution of two arithmetic functions f,g is defined by $f\ast g(n) = \sum\limits_{d|n} f(d)\ast g(n/d)$ How can I get the Dirichlet convolution of two lists? For example: Input: ...
34 views

### How to simulate a homogeneous nucleation?

From this topic Animating a Voronoi Diagram I can simulate the heterogeneous nucleation. Based on the voronoi Diagram, How can I use Mathematica to simulate the homogeneous nucleation?
40 views

### I want a mix matrix

I have a matrix with dimension (m, n) and elements f[p,q] and a matrix with dimension (i, j) and elements g[r,s]. How can I make a matrix (m+i) by (n+j) with elements Table[f[p,q],g[r,s]]?
47 views

### Fixing list “incompatible shapes” [on hold]

A part of my notebook returns to me the following expression: ...
50 views

### code is ignoring WhenEvent

I would like the value of x[t] to be equal to 0 when it has a negative value so I used WhenEvent but it has no effect on my code ...
44 views

### InstallJava on a parallel kernel while debugging in Wolfram Workbench

Here's my problem. I need to create a link between a client that is a parallel Wolfram kernel and a server through a Java API. I'm using Wolfram Workbench in debugging mode (like most of the time ...
356 views

53 views

### GeoProjection for astronomical data - wrong ticks

Here is an excellent answer to what I wanted to do, and it works like a charm. Unfortunately, when I want to change it a bit, it fails. For setting the stage, here is the datafile, and this is my ...
1k views

### Viewing Mathematica Demonstrations Project Code

I hope I am going insane and the I'm not seeing the snake about to bite me... How does one view the code in the demonstration projects that one can download from wolfram.com? It seems like all of ...
122 views

### Failed to create a special random-disturbed initial condition for partial differential equation

I try to use BSplineFunction to creat a initial condition for NDSolve which has periodic boundary condition, that is realized by ...
118 views

### Can I make a function which depends on several arguments which are not independent?

Here's a simple example Suppose have the permanent relation that z is proportional to xy^2, for real numbers s. z = s x y^2 Now, we are interested in ...
130 views

### Number of divisors visualized with the QPochhammer function, how improve performance of code?

I have this code that originally is Jeffrey Stopple's code for the Riemann zeta function in the complex plane. Because I discovered yesterday that the number of divisors can be generated with the ...
61 views

### How to find the same number in sublists of list

Intersection[Table[Table[Sqrt[p1]/r1,{r1,0.1,0.7,0.1}],{p1,0.5,5,0.5}]] I am trying to find same numbers in the sublists. But Intersection is not working for ...
38 views

### Funny behavior when computing dot product of coefficients with high-order polynomials

I have a similar problem to Funny behaviour when plotting a polynomial of high degree and large coefficients. However, the thing being evaluated is not just a polynomial but a dot product of some ...
757 views

### Mathematica 10 cannot solve definite integral

Bug introduced in 10.0 and fixed in 10.0.2 Mathematica 10 fails to solve the following integral, saying that it does not converge. ...
722 views

### NDSolve::ndcf: Repeated convergence test failure. How to solve?

I am trying to simulate a system of $n$ pendulums with some friction in Mathematica 9. This is the code I am using: ...
189 views

I am trying to get CUDAFunctionLoad to work with Mathematica 9.0. I installed the latest clang and the Nvidia Tools 6.0. but I keep getting the error message: ...