All Questions

5
votes
3answers
247 views

Comparison of Dispatch objects ureliable in Mathematica 10

In 2008 I wrote a group theory package. I've recently started using it again, and I found that one (at least) of my functions is broken in Mathematica 10. The problem is complicated to describe, but ...
0
votes
1answer
40 views

Entering block matrices, general case doesn't work

I want to enter several matrices at different positions in blocks. There is already a very similar answer here: http://mathematica.stackexchange.com/a/3562/6138 I thought that simply generalizing ...
0
votes
0answers
54 views

1/2D FDTD problem [on hold]

So I have been writing a code in order to simulate 1D initially wave propagating trough a slit and then a 2D just for completeness. Problem is the 1D version doesn't want to give me anything for some ...
0
votes
0answers
21 views

Integer linear problem (ILP) example, with 3 constraints and an additional restriction? [migrated]

Say I have the following Integer Linear problem: $x_1 \geq$ 0 No. of Item A $x_2 \geq$ 0 No. of Item B $x_3 \geq$ 0 No. of Item C $x_4 \geq$ 0 No. of Item D Maximize z = ...
1
vote
1answer
33 views

Minimization problem in a subset of Complex matrices

I would like to minimize $||\mathbf{A} \rho -v||$ (where $\rho , v$ are fixed vectors) with respect to the matrix $\mathbf{A}$ elements, but with $\mathbf{A}$ in a subset of complex matrices (i.e. ...
0
votes
0answers
44 views

How does Mathematica interpolates? [duplicate]

In manual for Interpolate function it is said, that possible method of interpolation is Hermite. Unfortunately, I can't see ...
0
votes
0answers
47 views

Solving a large system of nonlinear equations

I have a system of 80 nonlinear equations with 64 variables to solve in Mathematica but it takes a lot of time (about two hours) and then it return "no more memory available" knowing that I have 8GB ...
1
vote
1answer
71 views

What does it mean: “Assuming a matrix | Use a list of lists instead”?

I have entered a matrix by Insert->Table/Matrix->New. After adding it to code, Mathematica wrote a remark: "Assuming a matrix | Use a list of lists instead". ...
0
votes
0answers
25 views

problems with loading a package [on hold]

I have downloaded the package Geopack from here http://www.geostatisticskitchen.com/downloads I follow the described installation procedure: 1) Open Mathematica 2) On an untitled notebook evaluate ...
-2
votes
0answers
38 views

Solve 3 equations

I want to solve for $f, F$ and $\phi$ with these 3 equations: $\left\{m v=m f \cos (\theta )+M F \cos (\phi ),m f \sin (\theta )=M F \sin (\phi ),m v^2=m f^2+M F^2\right\}$ How could this be done?
0
votes
1answer
90 views

How can I plot a large number of functions and use a “…” to signal more inbetween? [on hold]

So I want to plot x+1, x+2, X+3,..., x+50 on a single figure. So I tried Plot[{x+1, x+2, x+3, ..., x+49, x+50}, {x, -5, 5}, PlotLegends -> "Expressions"] ...
0
votes
1answer
45 views

Plot a transformed distribution with an If function

Suppose I have a normal distribution $A \sim \mathcal{N}(\mu,\sigma^{2})$ with a known cutoff point (percentile) on this distribution called $c$. Based on this point the distribution needs to be ...
1
vote
0answers
37 views

Inport a web page with latex code as image png or other

To be brief; I would like to import a web page, then I write Import["http://fabricebaudoin.wordpress.com/2012/10/25/lecture-32-the-malliavin-derivative/"]; which give a notebook file without png ...
-2
votes
0answers
51 views

how to find the function of a plot that I draw with ContourPlot [on hold]

I draw a plot by the [ContourPlot][VAH[t, z] == 0, {z, .0001, 70}, {t, -10, 50}], and it gave me a line as I expected, now I want to have the function of the line, so I can do other calculation on ...
0
votes
0answers
29 views

Spherical Hankel and Bessel in Explicit form

This is probably an easy question, when i type the spherical Hankel (first kind) and the bessel function into WolframAlpha it gives back an explicit form, the one you would get if you were to do it by ...
4
votes
0answers
48 views

How to obtain transparent animated gif via Export?

I have the following code to create animated GIFs: ...
2
votes
1answer
110 views

Catastrophic loss of precision

while I am trying to solve the double integral in the range of 0 to Infinity (for both the integral) it give me the error Catastrophic loss of precision in the global error estimate due to ...
-2
votes
1answer
45 views

Graph Power Series

On the same axis, graph the function f(x) = e^x and its first 6 Taylor polynomials. Please tell me how to complete this. I have tried the plot function but it's not working.
2
votes
2answers
105 views

cycloid parametric [on hold]

How do I enter 3 parametric equations for cycloids corresponding to circles with radii 1, 2, and 4. I have tried ...
1
vote
1answer
38 views

Filtering out 'no solutions' after solving a high order polynomial

I am dealing with a fourth order polynomial. I get all of the desired out put however above a certain range I also get these - {}. From my understanding this means that there is no solution. I am ...
0
votes
1answer
36 views

Differentiation Help [on hold]

I am having some trouble on my math assignment. The question has three parts, and I think have the correct answer on the first two parts, but the last one, I'm having trouble with. It says to ...
3
votes
0answers
33 views

remote kernel through SSH

Is it possible to setup connection to remote kernels through ssh? I'm able to SSH into the remote server(linux) and start a kernel in the terminal, but it can't connect back to my local front end. I ...
0
votes
1answer
95 views

How to force correct answers for Integrals of Cos[mx]*Cos[nx]?

This is a big problem if you do anything with a Fourier Series. This statement: Assuming[Element[{m, n}, Integers], Integrate[Cos[m*x]*Cos[n*x], {x, 0, 2 Pi}]] ...
1
vote
0answers
30 views

Import csv file and missing “” when importing [on hold]

I am importing a csv file. When it imports and shows the import there are no quotes around the alpha characters or the date. Like this: {32856, 1, A, 10/1/2001, 1, 1, -54.4, , 4, 1, 1, 1, , , , \ ...
3
votes
3answers
113 views

Can I generate matrices with a constraint?

Say I want a way to generate matrices with the following properties, All non-diagonal elements are either $0,1,-1$ The diagonals are either $k$ or $k+1$ for some $k \in \mathbb{Z}^+$ for some $k$ ...
2
votes
2answers
89 views

Can't use my own discontinuous coefficient within NDSolve

I want to evaluate the pendulum's motion with changing equilibrium state given by eqilValue[t]: ...
0
votes
0answers
48 views

Plotting A Function Using A Given Number Of Points [on hold]

i'm new to mathematica and am trying to figure out how I can plot something and specify the number of points on the plot. I want to plot the real root of an equation from a=0..1 using 500 points of ...
1
vote
0answers
32 views

Simplifying an inequality inside an answer by parts

I have the following piece of code where I'm evaluating a probability of a variable v being greater than some threshold under a Uniform distribution. ...
5
votes
1answer
83 views

How to implement kvo in Mathematica 10? [duplicate]

Key value coding and observing is something that other languages do well, like objective-c for instance. What's the best way to achieve something similar in Mathematica (if at all possible)? That is, ...
0
votes
2answers
51 views

Show legend on plot [duplicate]

I have a series of curve I'm plotting using ListPlot. For each plot I'm changing a variable called X. Is there anyway I could ...
0
votes
2answers
54 views

DSolve bvlim error due to Boundary condition at infinity

I am solving an Ode using Mathematica that has boundary condition at infinity which is why Mathematica is showing error message. Please help to tackle this problem. ...
0
votes
0answers
34 views

plotting the stable and unstable manifolds of a difference equation

I have a 2D non-linear system of difference equations for variables x and y defined as follows: ...
2
votes
3answers
137 views

Deleting missing data with CountryData

I need to delete all of the missing entries after executing this line: ...
0
votes
0answers
22 views

Probability of occurrence of an event [closed]

If n positive integers are taken and multiplied together then the probability that the product has 1,3,7 or 9 as it's last digit ?
-2
votes
0answers
23 views

How to define a function with more than one equation in? [closed]

How do I define the first function where there are more than one equations in it with each with an inequality? And for the second question how do I graph the periodic extension, what is it?
5
votes
2answers
68 views

Using gamepad without dynamic

I am a novice using Mathematica. I program regularly using c like languages though. Now i work on a simulation of a vehicle. I have a loop that calculates the next state of the physical model every dt ...
6
votes
2answers
197 views

Negative integral of a positive function

For a parameter $t\in (0,1)$ $Assumptions = t ∈ Reals && t > 0 && t < 1 I define an obviously positive function $f(x)=\left| \Re ...
1
vote
1answer
78 views

Merging documentation from Workbench with handed-coded package

On the one hand, I have been writing my package (directly into the .m file) separately using the standard Mathematica front-end. My source .m files and the init.m files have the appropriate folder ...
15
votes
2answers
182 views

Why Infinity /. _?(# < 6 &) -> 0 replaces Infinity with ComplexInfinity?

Suppose I define a matrix: mat = { {Infinity, 4, 9}, {6, Infinity, 10}, {8, 9, Infinity} }; Now I want to replace all values smaller than ...
0
votes
2answers
36 views

Fix the position of the axes label [duplicate]

How can I set the position of the axes labels (X,Y,Z), so that, among other things, they do not overlap with the numbers in the axes? Here an easy example: ...
4
votes
1answer
85 views

Non-separable partial differential equation in polar coordinates

I'm trying to solve the Schroedinger equation in 2D for a system interacting via a dipole potential. This means, in effect, I'm trying to solve the nonlinear PDE $$ -\frac{1}{r} ...
2
votes
1answer
60 views

Community detection on weighted graphs?

The documentation says that FindGraphCommunities works with weighted graphs. I've been playing around with a complete graph with weighted edges, and FindGraphCommunities always returns a single ...
0
votes
0answers
20 views

Symbol definition in parallel kernels

Suppose I have a reasonably large number of floating point arrays, obtained from prior numerical simulations. These are stored as binary files named data_#####.dat ...
0
votes
1answer
50 views
0
votes
2answers
87 views

Help Please : Error in plotting the solutions of FindRoot

I want to find the roots of an equation using FindRoot as a function of a real parameter K and then plot the real and imaginary solutions vs. the parameter K. The function I'm trying to find the ...
-1
votes
1answer
77 views

Shells with Mathematica

I am a beginner, so please bear with me. I would like to get this plot with Mathematica: In fact, both mathematical background of such plot, and its implementation in Mathematica are here. This ...
1
vote
0answers
30 views

Resolve not accepting equations involving factorial

If I take , Resolve[ForAll[x,x!>=0],Integers] True But if I make slight modification, ...
0
votes
0answers
35 views

How to change the scale on the x axis using Plot? [closed]

I need to plot the function $f(x)$ on the $x/x_0$ scale, where $x_0$ is some constant. Is it possible to change the $x$ axis scale on the graph using the function Plot[f[x],{x, xmin, xmax}]? Thanks.
0
votes
0answers
37 views

How to define the block matrix and calculate it's inverse

How to define the following block matrix $$ A=\begin{bmatrix} H-G_1 & -G_1 & \ldots & -G_1 \\ -G_2 & H-G_2 & \ldots & -G_2 \\ \vdots & \ldots & \vdots & \vdots ...
0
votes
1answer
31 views

How to find the Nth zero of a function

It's an almost same question with "a multiple roots finding" but, the order of roots is important in my case. Basically, I'm trying to find Nth crossing point of the following graph: ...

15 30 50 per page