All Questions

0answers
66 views

Second order differential equation with boundary conditions solving repeatedly

I want to solve a second order differential equation in the interval[-1:1], which does not have a analytic solution, \begin{eqnarray} y''(x) &=& k \phi^2(x)y(x) \\ \phi(x) &=& ...
0answers
28 views

Control size of formula in a gridbox [duplicate]

When I enter a multi-line formula, I always use a gridbox. But I find that the size of formula in each box is not appropriate. For example, when I enter a compound formula containing fraction or ...
0answers
10 views

OpenCL_error by ImageSize option

Unable to unload memory problem. The example is in OpenCLFractalRender3D
2answers
171 views

Unexpected Integration Constant [on hold]

Why does this integration Integrate[15-30x+6x^2-1/(x+5),x] return 700 as integration constant? If we make a slight modification ...
0answers
26 views

Automatically discover the class of an arbitrary matrix

In Wolfram|Alpha it is possible to discover some specific classes to which a matrix belongs. For instance, typing this in Wolfram|Alpha ...
0answers
37 views

OpenCL_result not the same as that in the example-Julia

My system is "Windows-x86-64", Mathematica version is 10.0, my card is GTX860M When I'm trying this example, my result is not the same like that in the example. ...
0answers
23 views

Solving/simplifying a trig function [migrated]

Given: $\tan\:a=\frac{5}{12}$ and $a\in QIII$ $\csc\:B=-\frac{5}{4},\:\cos\:B>0$ $\cos\:\theta =-\frac{8}{17},\:\frac{\pi }{2}<\theta <\pi$ Solve: ...
0answers
25 views

Solving/simplifying a trig expression [migrated]

My problem sheet says that $\tan a= 5/12$ and $a \in {\rm Q\,III}$ ($a$'s in quadrant III). Using this information, I am to solve/simplify the expression $\quad \quad \cos\left(\frac{1}{2}a\right)$ ...
3answers
124 views

Determine if a variable appears in an expression or not?

Consider an arbitrary expression expr. This expression may contain arbitrary data, like integers, variables, implicit functions etc. Now, I would like to determine ...
0answers
50 views

Can't find the limit of this complicated expression

Here is the limit I am trying to calculate ...
1answer
56 views

FreeQ and arguments of Hypergeometric2F1

I was trying to use FreeQ to test for the presence of Hypergeometric2F1 functions in my expressions. I encountered the following ...
0answers
54 views

Derivatives of functions with arbitrary number of variables?

I am trying to define a function f[x1,x2,...,xn] with n integer but not specified. And then I would like this funktion to behave ...
0answers
93 views

What is the causing these colored marks to appear in my Mathematica notebook?

I'm particularly annoyed with the black ovals that occasionally obscure parts of the input as I'm typing: I have also observed the appearance of rectangular blue marks with similar behavior: ...
2answers
412 views

...
2answers
94 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 ...
1answer
32 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
0answers
39 views

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

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 ...
0answers
66 views

Mathematica 10 is shuttingdown many times [closed]

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?
2answers
51 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 ...
0answers
49 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 ...
0answers
35 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 ...
3answers
89 views

plotting two Error List Plots in one

I made two ErrorListPlots ...
0answers
40 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 ...
0answers
26 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: ...
4answers
316 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 ...
1answer
85 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. ...
0answers
20 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 ...
3answers
97 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?
2answers
39 views

0answers
57 views

What's the wrong when I use the BodePlot?

I want to plot this Butterworth filter's TransferFunction: ...
0answers
57 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 ...
0answers
60 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 ...
0answers
41 views

Understanding the order of applying Rule to expression [closed]

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, ...
0answers
45 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 ...
1answer
46 views

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

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: ...
2answers
50 views

Assigning to the “local” version of a symbol

Compare Manipulate[c[1] = 1; c[1], {c[1], 0, 1}] with Manipulate[Do[c[i] = 1, {i, 1}]; c[1], {c[1], 0, 1}] The first case ...
0answers
52 views

Finding the domain of this trigonometric function [migrated]

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 ...
1answer
152 views

Why some built-in functions are slower compared to some other ways using more than one built-in functions for doing same job

I just wonder why some built-in functions are slower compared to some other ways using more than one built-in functions for doing same job. consider this example: ...
1answer
76 views

how to speedup subpixel registration

I have a bunch of small images that I need to register with larger images with sub-pixel resolution (ie. based on image interpolation ) This works.. seeking advice to improve performance. Create a ...
1answer
44 views

I have ...
1answer
29 views

I need help simplifying this equation [closed]

1 = D / R Now I want to add a value to each side. U. Is it like this? 1 + U = D / R + U Then I need it simplified. Thanks
2answers
45 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 ...
0answers
27 views

Insert the chapter number and title in a header or footer

I would like to export a mathematical paper in pdf format. I try to inport the chapter title and number in each pages. Could you please give me some ideas? I read the ...
0answers
68 views

how to solve a differential equation [closed]

I am trying to solve the following differential equation: ...
0answers
61 views

Manipulate in Manipulate

Question 63982 got a very interesting answer from @belisarius, in which he used a Manipulate within a Manipulate to achieve the ...
0answers
53 views

Spread multiple edges by a specified scaled distance (Mathematica 10)

Is there way to spread multiple edges by a specified scaled distance for Graph function in Mathematica 10, something similar to MultiedgeStyle in GraphPlot for example, I would like to write: ...
0answers
29 views

...
0answers
49 views

Plotting a Function that contains a Numerical Integration

I'm using mathematica to plot a function that has been defined in the following way: ...
2answers
86 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 ...

15 30 50 per page