3
votes
4answers
440 views
5
votes
3answers
748 views

Triangulated Mesh from Voronoi Diagram

I want to generate a mesh (using Mathematica 10) in the following manner: Generate a Voronoi diagram, like so: and then triangulate each individual Voronoi grain, were an edge is formed by ...
6
votes
2answers
257 views

Simplify 2D polyhedral Regions like Interval

I don't think there's a built in "RegionSimplify" for polyhedral Regions and derived akin to how Interval automatically simplifies its argument expression: ...
2
votes
0answers
164 views

Puzzling NDSolve[] behavior for PDE (smooth solution, inconsistent with boundary conditions)

Consider the following: NDSolve[{D[z[x, y], x, x] + D[z[x, y], y, y] == 0, z[x, 0] == Sin[x], z[0, y] == Cos[y]}, z[x, y], x, y] {{z[x, y] -> ...
2
votes
1answer
105 views

One of the factors greater than $x$

Is there an easy way to tell Mathematica to find one of the prime factors of $n$ greater than $x$. For example, if $n=1299709\cdot 7919 \cdot 17$, is there a way to request a factor greater than $100$....
1
vote
2answers
119 views

Manipulate with Locator question

Here is an example from Mathematica's help: Manipulate[Graphics[Polygon[pt], PlotRange -> 2], {{pt, {{0, 0}, {1, 0}, {1, 1}, {0, 1}, {1, -1}}}, Locator}] ...
7
votes
1answer
306 views

A more perfect Union[]

I was doing a Project Euler problem with my class, and found the following weird fact: Union[] of a list of some 50 million numbers (of which only around 15000 were ...
1
vote
0answers
108 views

Parts of Plot3D / ListPlot3D obscured by non-transparent tick labels (v10.0.1) [closed]

I am running v10.0.1 on Win7 64. There appears to be a problem with rendering 3-d graphics. For example: Plot3D[Sin[x] Cos[y], {x, -π, π}, {y, -π, π}] Parts of ...
1
vote
1answer
133 views

Dynamic control values for Slider2D

I would like to have a Manipulate object with a 2D slider whose boundaries change dynamically depending on other controls. For linear sliders this seems to work ...
6
votes
4answers
334 views

Finding totals in a Dataset

I have this Dataset: ...
1
vote
1answer
97 views

Plotting polyhedra faces with polygons removed from the interiors of the faces

I have dozens of vertices and dozens of faces which is why I use the v={};i={} and Graphics3D and ...
2
votes
1answer
76 views

What's wrong with this RenameFile?

I want to rename a .txt file. For example create a file on your Desktop and name it use TEST.TXT, now I want to rename it to <...
4
votes
2answers
249 views

A problem about recursion formula of de Casteljau algorithm

I use Mathematica to implement the de Casteljau algorithm $$\vec{P}_{k,i}(u_0)=(1-u_0)\vec{P}_{k-1,i}(u_0)+u_0\vec{P}_{k-1,i+1}(u_0)$$ The graphics that de Casteljau algorithm generated as follows: ...
0
votes
2answers
160 views

Getting table headings when creating a table with two variables

I have created a table, and I want the variables that run through to create it, as the headings in their respective place. So when my table is created by variable a...
8
votes
2answers
314 views

Graphics3D not rendering Ball as a filled object

Bug introduced in 10.0.0, persists though 10.1 Mathematica V10 introduced the built-in function Ball. The documentation page, ...
6
votes
3answers
352 views

How to use a compiled function in numerical optimization

I'm trying to wrap my head around function Compile. So, this is a spin-off question from: a previous question on using compile[] correctly. I have a function that ...
3
votes
1answer
326 views

2-Dimensional NFourierTransform

Mathematica FourierSeries package contains the NFourierTransform function for calculating 1-D Fourier integral numerically. ...
1
vote
2answers
104 views

Add weighted edge to a graph in Mathematica 8

Is it possible to add an edge with a specific weight to a Mathematica Graph object? The function EdgeAdd has no option for the weights, nor the ...
1
vote
1answer
53 views

Graph objects for LineGraph

When I enter for example G = Part[GraphData[10],1]; LG = LineGraph[G]; I get error message that LineGraph requires a graph ...
17
votes
7answers
1k views

Integers which are the sum of both two and three consecutive squares

This is a math problem I came across the other day: $365$ can be written as a sum of two and also three consecutive perfect squares: $$365=14^2+13^2=12^2+11^2+10^2$$ What is the next number with ...
3
votes
1answer
157 views

How do I format Compile[] correctly?

My Mathematica skill is still rusty, so kindly bear with me. I'm having problem formatting expression to compile the function correctly: $\sum _{g=1}^G \sum _{n=1}...
2
votes
1answer
94 views
0
votes
1answer
1k views

How to use multiple core in evaluation?

Sorry if the question is very basic, that's because I am newbie in the Mathematica. Assume I have a module that is supposed to do a very very long calculation result = Table[0, {i, 100000000}]; f[...
2
votes
4answers
241 views

Get 'new' list of data by manipulation 'old' list

Assume I have the the following list of data: valuesOld = {5, 10, 15, 20, 25, 35, 40, 45, 55, 65, 80}; I would like to construct the following list: ...
2
votes
3answers
134 views

Remove all “not equal” clauses from an expression

I am banging my head against the following question: how can I have Mathematica take cond = 2 a >= 3 b && 70 a >= 19 && 20 a != 13; and ...
15
votes
6answers
430 views

Different results between V9 and V10 when using Style with Listplot

Consider this example: data = Table[{x, x^2}, {x, -2, 2, 0.1}]; ListPlot[Style[{#1, #2}, PointSize[Abs[#2]/50], Hue[#2]] & @@@ data] the results from V9 and ...
12
votes
2answers
302 views

Temporal database reconstruction in mathematica

<EDIT> after some internet research I found the database domain that deals with this kind of thing: Temporal Databases. I think my question therefore becomes how to reconstruct a temporal ...
1
vote
0answers
314 views

Mathematica does not calculate inverse fourier transformation or the convolution of two functions

I am trying to take convolution of a Gaussian function with an exponential function. Mathematica couldn't calculate it. ...
5
votes
0answers
134 views

Dropbox datastore

Dropbox seems to have a feature where it can be used as a database. This would be really cool to use for memoized functions, that can be restored on several computers and sessions. I have a function ...
8
votes
3answers
281 views

Disable templates for user defined functions with usages

It appears that fixing the template system is low on Wolfram Research's priority list. For my package, I have defined Usage info for my functions involving lots of ...
0
votes
1answer
284 views

Extracting filter coefficients from a transfer function

What is the correct way to extract coefficients (in a form I could use in RecurrenceFilter) from a filter which I have represented as a Mathematica transfer ...
8
votes
3answers
342 views

GroupBy a list of associations with their keys

How can I go from ...
2
votes
1answer
303 views

How to highlight image edge with spline/bezier when mouse moved over?

It is known that EdgeDetect can find image edges in an image. Suppose the image edges consists of sets of lines. Can the detected edge line near the mouse pointer be highlighted as spline/bezier when ...
4
votes
2answers
229 views

InstallR on OS X with external R installation on 10.0.1.0

I had no problem to follow the instructions given at InstallR on OS X with external R installation to get an external R working with Mathematica 10.0.0.0. However when Mathematica was updated to 10.0....
0
votes
2answers
271 views

How to construct new geometrical shapes in Mathematica?

In this question of mine I asked for how to implement a 2D random walk within a bounded area. In the provided solution one can use Rectangle[{-10, -10}, {10, 10}] ...
13
votes
1answer
915 views

Curve fit based on minimal data

Inspired by the fantastic answers here and here, I would like to ask a questions along similar lines. I have 6 curve types that follow these rules: Type A: If point 1 is positive and point 2 is ...
0
votes
2answers
113 views

Numerical Integration

I have used the following code to evaluate an integral (val) numerically ...
10
votes
3answers
798 views

Getting a custom Bézier curve function to work

In general, the $nth$-degree Bézier curve is defined as: $$\vec{C}(u)=\sum_{i=0}^{n} B_{i,n}(u) \vec{P_i} \qquad 0\leq u\leq1$$ where $B_{i,n}(u)$ is the classical Bernstein polynomial, $$B_{i,n}(u)=\...
8
votes
3answers
135 views

Defining a custom Plus for a specific class of arguments

I'm trying to develop an domain-specific language with Mathematica. I want to define a customized behavior for the Plus function when applied to my data. For ...
2
votes
2answers
165 views

How to get `Series` to recognize user-defined function has pole

Edit for clarity: How does Mathematica's function Series know that Gamma[x] has a pole at ...
2
votes
1answer
395 views

How to solve a PDE with Robin Boundary Condition inside considered region?

I'm trying to solve the heat diffusion equation in cylindrical coordinates. The main problem is that I would like to include the Robin Boundary Condition inside considered region in order to simulate ...
2
votes
1answer
402 views

About Slicing through Graphics3D

Recently I have seen a code in mathematica about Slicing through Graphics3D in Slice through Graphics3D. My questions is: Is it possible to fill out these spheres? I have problem with generating ...
0
votes
1answer
69 views

Solving at zeroes of a matrix - code only works for simple equation

I have a matrix of zeroes (True) and non-zeroes (False). The matrix is generated from a table of values of two other variables. I'm trying to observe how the solution for p3 changes with small '...
5
votes
2answers
417 views

Hasse Diagrams in Mathematica using an arbitrary relation

As a kludge to draw Hasse diagrams for an assignment, I wrote(based on this): ...
4
votes
0answers
419 views

Solve integral equation for upper bound

I need to find the upper bound of an integral knowing the value of the lower bound and the result of the integral. Here is my function: f[t_] = Sqrt[1 + E^(-2 t)] ...
4
votes
1answer
185 views

Why can't the Bernstein Bears work normally?

Bug introduced in 7.0 and fixed in 9.0 I want to use the built-in BernsteinBasis[] to learn about Bezier curves. I tried the following code: ...
15
votes
2answers
211 views

Bug in Operator Form of StringCases

fixed in 10.1 (windows) According to the documentation there's an operator form for StringCases ?StringCases Here is the ...
2
votes
1answer
383 views

ParametricNDSolve KKT Constraint Directly

I am trying to directly solve for an optimal control using Pontryagin Maximum, where H is the Hamiltonian, in the presence of a KKT constraint. The constraint is ignored. I am wondering if a direct ...
10
votes
5answers
938 views

Multidimensional interpolation with duplicate abscissa values [duplicate]

I am trying to do a first order interpolation on a multidimensional data set containing duplicate abscissa values (which Mathematica does not like), like this one: ...

15 30 50 per page