0
votes
0answers
2 views

How can I disable syntax highlighting for an individual cell?

I would like to temporarily get rid of syntax highlighting when it seems to be misbehaving. I'm particularly annoyed with the black ovals that obscure parts of the input as I'm typing: Are there ...
2
votes
4answers
225 views

Solving puzzles with Mathematica

I would like to be able to solve logic puzzles such as the one described here using Mathematica. I have copied & pasted the listed example below to save on jumping about with hyperlinks: The ...
0
votes
0answers
12 views

Why does Export show only part of the original Graphics?

While trying to export Graphics generated with Show[], I often face the problem of having an EPS output which is incomplete. An ...
0
votes
0answers
38 views

Mathematica 10 is shuttingdown many times [on hold]

I run mathematica 10 on mac osx 10.9. It shutdown many times. I do not understand what happen. What is the problem. Any clarification?
2
votes
0answers
19 views
9
votes
4answers
273 views

How can I efficiently check if a graph is unit distance?

A unit distance graph is a graph that is embeddable in the plane so that every edge has length 1. ...
1
vote
1answer
22 views

Weird behavior of conditions when using OptionsPattern and OptionValue

I'm trying to define a function that is evaluated differently depending on its options. This code ...
2
votes
2answers
46 views

A Product function for matrix products

I would like to use an equivalent of the product-function in mathematica, but where instead of multiplying numbers I multiply matrices?
3
votes
1answer
51 views

Compatibility of Mathematica 10 and Endnote 7 on OS X

Given the new updates, are EndNote 7 and Mathematica 10 compatible when running on OS X?
0
votes
1answer
24 views

Convert imaginary exponentials to goniometric expressions

Can I force mathematica to re-express something like $$\left\{\frac{1}{2}i\left(\frac{1}{16} e^{-2 i (\alpha (1)+4 \alpha (2))} \left(-1+e^{8 i \alpha (2)}\right) \text{d$\alpha $}(1) \left(2 \left(2 ...
1
vote
0answers
32 views

Can Listplot output data to an image whilst leaving axes and labels as vectors?

Question: Can Listplot be set to render the data as an image whilst leaving axes and labels as vectors when saved as a PDF? Context: I have around 100,000 points in my listplot which when saved to a ...
11
votes
3answers
570 views

Finding the surface area of a 3D convex hull

I have noted several instances here and here where ConvexHullMesh, introduced in v10 has been used to greatly simplify some geometry problems. Determining the ...
0
votes
2answers
45 views

A constraint to RandomReal for sum of numbers equal to arbitrary n

I want to generate some random numbers but respect a constraint. So I use RandomReal[{0,1},N,WorkingPrecision -> 2] I want to fix a constraint in order ...
1
vote
1answer
79 views

graphics grid legend

I'm working with mathematica 9.0 and I want to make a graphic grid containing 3 different plots. My problem is that when I use plotlegend to label the plots the legend does not show up or the left ...
2
votes
2answers
90 views

Include Formatting Save As .nb to .m

Is there a way to export Input Cells in my current notebook(.nb) as a .m file while including indents? For example if my notebook contains ...
0
votes
1answer
27 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
23
votes
7answers
6k views

Even Fibonacci numbers

Today, I found the Euler Project. Problem #2 is Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: ...
6
votes
2answers
102 views

How to create subregions for the NDSolve FEM Solver

I am trying to create a 2d region consisting of two subregions. The inner region has several holes, where boundary conditions are applied. The figure shows the idea. I have tried to create this ...
4
votes
2answers
71 views

Pull out scalars from NonCommutativeMultiply in commutator of SU2 spin algebra

I am trying to work on spin chains in Mathematica. That is, N spin-1/2 on a one-dimensional lattice with periodic boundary condition (N+1=1). I need therefore the SU2 spin algebra $S_z, S_+, S_-$ with ...
6
votes
1answer
288 views

Estimation of vector autoregressive (VAR) process

To estimate 1-dimensional VAR process (which is AR process) you can easily use functions EstimatedProcess or ...
1
vote
3answers
72 views

plotting two Error List Plots in one

I made two ErrorListPlots ...
3
votes
0answers
32 views

RawArray crashes the kernel

RawArray seems to crash the kernel on my machine RawArray["Byte", {}] Is this a bug? Any insights why this happens? My system: version 10.01 on Mac OS X 10.0 ...
3
votes
0answers
30 views

How to derive SinglePredictionBands from a NonlinearModelFit model

I have found NonlinearModelFit to be extremely useful in my work. Here I have fit 4 points to a function and am being asked to explain how the 95% SinglePredictionBands associated with the plot below ...
-1
votes
0answers
43 views

Can I get features edge(face outline, mouth, nose, eyes, etc.) after clicking on edge points in an image?

EdgeDetect always gives discontinuous feature edges. An algorithm that can get nice feature edges automatically is too complex. If I were to help by manually ...
0
votes
1answer
51 views

Number of sequences with a certain condition

Suppose I have the sequence {2, 4, 6, 8, 10, 12, 14, 16}. How could I calculate the number of tuples so that for every term save the first one, the difference from ...
0
votes
0answers
20 views

Copying an “upright” fraction and pasting it gives a “flattened” fraction

I use Mathematica 10 on OSX Yosemite I copied (command+C) an "upright" fraction like in an input line and pasted (command+V) it in another. But, it gave a "flattened" fraction like . Is there a way ...
0
votes
0answers
47 views

What's the wrong when I use the BodePlot?

I want to plot this Butterworth filter's TransferFunction: ...
1
vote
3answers
80 views

Problem in finding the numerical maximum

I need to find the numerical maxima of the function $$i(s)=\bigg[ \frac{\sin{50\pi (\cos s+1)}}{\sin{10\pi (\cos s+1)}} \bigg] ^2$$ Or in the mathematica input form: ...
1
vote
0answers
22 views

Bug? malloc munmap_chunk: Assertion failed

I run a mathematica script on a Linux system and after two days it dies with the error message MathKernel: malloc.c:3546: munmap_chunk: Assertion `ret == 0' failed. Aborted There should be ...
0
votes
0answers
19 views

Mathematica Integrate implicit assumptions returns a function not defined in some points while NIntegrate performs integration safely

Hi guys i'm performing a standard integration with mathematica routine Integrate, the function i'm integrating is the following: ...
0
votes
0answers
30 views

Trouble with Fourier transform of Exp[-Sqrt[x]]

First time trying to do something "real" in Mathematica, I am having trouble getting it to calculate this Fourier transform. It runs for a long time, then just prints the input expression. ...
4
votes
2answers
120 views

Draw a partial line in Animate

I have a list of points that my line must go through, all at varying distances from one another. I'd like to draw just a piece of this line in an Animate, where the various segments are traversed at ...
0
votes
0answers
10 views

NMinimize outside the feasible region

I got the following minimization problem. I get a solution if I set constraints1 := L.x >= y; and eliminate constraint 2 from my set of constraints. So ...
3
votes
2answers
119 views

Equation of a transformed (roatted) ellipsoid [closed]

Given an ellipsoid with semi-axis {a,b,c} and cantered at {a,0,0}, how do I use ...
2
votes
1answer
113 views

Why do identifiers of the form ${\tt c}k\$nnn$ appear in the rules returned by my function?

I want to define a function, PolynomialInterpolation to find the coefficients of a polynomial interpolation function. My trial is as shown below: ...
4
votes
1answer
76 views

Does PrivateFontOptions -> {“OperatorSubstitution” ->False} fail in version 10?

Please consider the following, version 10.0.1, OS X Mavericks: ...
0
votes
0answers
48 views

Birch clustering in Mathematica

I want to implement birch clustering in Mathematica. MAthematica only has 4 methods of clustering, is there any implementation for Birch clustering? Birch clustering is much faster than K means ...
2
votes
0answers
47 views

Distance Time Warp (DTW) function implementation in mathematica

The DTW (Distance time warp) is given here http://en.wikipedia.org/wiki/Dynamic_time_warping There is an implementation of DTW in R as well as MATLAB. However i am unable to find something for DTW in ...
-2
votes
1answer
50 views

Finding the domain of this trigonometric function

how can I find the domain of this function? f(x) = (xsin(x) + cos(x) / 1 - cos(x)) + (|X| - 2 / x^2 -4) I assume we don't want the dominator to be zero so f(x)1 ...
5
votes
1answer
78 views

FlipView can't handle CurrentValue[“MouseOver”]. Kernel crash

Is this code crashing your Mathematica session? (it can so look out :P) ...
5
votes
1answer
54 views
4
votes
2answers
178 views

How can I preserve the properties of edges of the original graph $g$ in a subgraph that doesn't include every edge of $g$?

The closest question to the following I could find was Preserving labels when using graph functions, but it doesn't seem to cover this. Consider a graph g where ...
4
votes
2answers
83 views

Altering values in Manipulate with dynamically generated controls

I have a Manipulate whose controls are generated based on a parameter in a containing Manipulate: ...
1
vote
2answers
95 views

Solving Differential Algebraic Equations as BVP

I am trying to solve a set of DAEs. \begin{equation} -4 \nu (\lambda(s))^{(-1 - 4 \nu)} \theta'(s) \lambda'(s) + (\lambda(s))^{(-4 \nu)} \theta''(s) = -\alpha_y \cos\theta(s) + \alpha_x ...
1
vote
0answers
34 views

Understanding the order of applying Rule to expression

I am a little confused about: In what order is a Rule tried to apply to an expression? In a depth-first order or otherwise? For example, ...
1
vote
2answers
40 views

Solving a differential equation with NSolve and ploting it WITH the use of Manipulate

I want to solve, let's say, this differential equation: y'[x]=y[x]^n Given any initial condition (wich I might want to manipulate too). I want to plot the graph ...
1
vote
3answers
37 views

What is the correct syntax for using a radio button to set values to be used elsewhere? (restated)

Here is my question, restated - I want to be able to choose the values for a complicated function from a set of alternatives values that I have gathered. The function requires several input values, ...
4
votes
2answers
83 views

how to find numerical zeros of $f(z)$ in a compact complex domain

I encountered a function $f(z)$ with several zeros in a region $1<Re(z)<2, 3<Im(z)<4$. These zeros are visible in a three dimensional plot like ...
-2
votes
1answer
40 views

Why is it so complicated to simplify a complex conjugate? [on hold]

My question is very simple. I would like to multiply a complex number by its conjugate. Unfortunately, this seems to be extremely complicated in Mathematica. Consider the very basic example: ...

15 30 50 per page