0
votes
1answer
47 views

Manipulate a plot with display of a condition

This is a how to question --- the example is without importance. I want to manipulate the plot of say a x^2 + b y^2 for (a,b) belonging to a specific set, but a + b > 0. Is it possible to make ...
-2
votes
0answers
15 views

ArrayPlot arguments [closed]

ArrayPlot[initLat, ColorRules -> {1 -> White, -1 -> Black}, Mesh -> True, ImageSize -> Small] ArrayPlot::argt: ArrayPlot called with 3 arguments; 0 or 1 arguments are expected. Thanks!
0
votes
0answers
32 views

Pade approximants for Taylor series using mathematica [closed]

fluid-dynamics In running Pade Approximants for taylor series to rationalize using Mathematica for higher degrees, the program gets hanged. What can be the reason ?
0
votes
0answers
31 views

Pass List / Vector argument through NDSolve to a function

I am trying to pass vector or list as argument to the function from NDsolve.And I am getting these error. Also I am pretty new to stack overflow. Apology if this a possible duplicate. Here is my code. ...
3
votes
1answer
55 views

“Most compatible vector representation”

When saving a plot through right click ► Save Graphic As…, Mathematica lets me choose several options, including separate vector representations for areas with ...
1
vote
0answers
39 views

Periodic boundary condition trick

I'm plotting a curve on a compact space which is having periodic boundaries on the left and right parts. Currently, the code I'm using is working great, but I'm wondering if there's a simpler and ...
10
votes
3answers
198 views

How to describe the convex hull of a set of points as an implicit region for optimization?

Last edit: 2016-05-03 A.G.'s answer was the one helped me the most, see explanation at the end of this question. Original question In Mathematica you can create out of a set of points in 2D and 3D ...
0
votes
1answer
46 views

Need help extracting data

I'm a teacher on a $20,000/year salary so I'm using Wolfram Programming Lab online to experiment with Mathematica scripts to save money (although I'm hoping to get a raspberry pi as a birthday present ...
1
vote
1answer
37 views

portions of plot missing for a relatively simple function

I am trying to produce a graph of the linear dynamic system response to a step input. The code is as follows: ...
0
votes
1answer
42 views

Metric Simplify & grouping

I'm changing a basis from one metric to another. When simplifying the result Mathematica doesn't seem to grasp all the possible simplification: ...
0
votes
0answers
25 views

Is there a way to save the output from integrate as a function? [closed]

Is there a way I can save the result of my integration as a function? I would like to be able to assign the result of this integration to a function which accepts ...
1
vote
1answer
49 views

FunctionInterpolation on a 2D function does not match original function when plotted together

I met with a problem when trying to find the interpolation function of a 2 variable function. The function is like below (already simplified for brevity): ...
5
votes
0answers
131 views

Is there an internal logic behind short form symbols, such as @ (Prefix), @@ (Apply), /@ (Map), /. (ReplaceAll) [closed]

To me, function names (such as Apply and Map) seem more intuitive than their symbols (e.g. ...
7
votes
1answer
122 views

Map vs listable [duplicate]

What's the difference between setting a function's attribute as Listable and using Map? I understand that ...
0
votes
2answers
78 views

Free-fall air resistance problem

I´m working on a free fall problem and I got an equation with variable $k$ when the situation has air resistance. Then I compared with no air resistance equation ($-4.9$, considering t variable). So, ...
8
votes
1answer
71 views

How can I identify which solution triggered the WhenEvent?

I am using NDSolve for problems like this: ...
1
vote
1answer
81 views

Drawing spheres with texts on top of each other without overlapping [closed]

I want to use Graphics3D to draw a sphere with a text on it. Then, I'd like to draw another sphere (with a different text on it) on top of the first one. This is the code I'm using ...
1
vote
1answer
55 views

Subscripted variables give errors in Module expression [closed]

I have following problem. I want the R not to calculate before the integration but substitute later as a function of z. My Mathematica codes look like: Codes like big, (sorry) but most of them ...
2
votes
0answers
61 views

Ramanujan's asymptotic formula for $p(n)$

The following expression is the exact formula of partition function. Ramanujan's asymptotic formula for $p(n)$ is following $$p(n)\sim\frac{1}{4n \sqrt{3}}e^{\pi \sqrt{2n/3}}$$ Can I use ...
1
vote
2answers
53 views

MMA gives error when a different PDF expression is used for the same distribution

I have the following MMA code. Note that the function I declared at the very beginning is the PDF of square of a Nakagami Distributed random variable. With $m=1$ and $P=1$, $f(h)$ becomes Exponential ...
-3
votes
0answers
36 views

Polynomial Equation/Function With Even Degree Order [closed]

I have the following data for $x$ and $y$ axis, which I am reading from an Excel file by using the Import command and plotting by using the ...
8
votes
2answers
71 views

How to use `Except[]` inside of `Pick[]` [duplicate]

Pick[{1, 2}, {0, 1}, Except[0]] returns {1, 2}, the first element of which I did expect to be excluded. What is the thing I ...
9
votes
1answer
107 views

How can I use Mathematica to make a captcha image?

This was inspired by this post which is about the serious business of website deployment in the Wolfram Cloud, and interaction with Google's reCaptcha system. I started thinking of how to make those ...
0
votes
1answer
50 views

How to find this probability with PDF from TransformedDistribution?

I need to find the expression for the following equation, where $m>0$ ...
1
vote
1answer
66 views

Inconsistent Integrate behavior?

Evaluating the following integral with Mathematica Integrate[q0/(-1 + q0^2), {q0, 0, A}] gives a conditional expression ...
2
votes
0answers
57 views

Interface design to replace cascading dialogs which don't work

I would like to make a nice Interface of a simulation I wrote, but i don't know how. I want that you run the code and then a window asking for input of some values appears (either in the same ...
9
votes
6answers
562 views
5
votes
1answer
46 views

How to understand the different output of two UnsetShared?

Update From technical support, Thank you for contacting Wolfram Technical Support. I understand that you are reporting an issue with UnsetShared deleting the shared variable after a second ...
2
votes
2answers
54 views

How to translate/convert UTF-16 code to its corresponding word/characters by Mathematica?

I'm using Mathematica10.0.2 on my Win7. Recently I crawled some websites by mathematica and within the information returned by URLFetch there are plenty of UTF-16M codes. These UTF-16M codes are ...
6
votes
2answers
155 views

NSolve behaving differently in V9, V10.3 and V10.4

EDIT In a very fast response from Wolfram they state that this is a known problem and give an example of it working for version 10.4.1. $Version "10.4.1 for Microsoft Windows (64-bit) (April ...
0
votes
2answers
62 views

Random 3D cylinders plot [duplicate]

I have seen this trivial example for circles ...
-1
votes
0answers
75 views

Integral Equation Solving [closed]

I need to solve two coupled equations such as ...
0
votes
0answers
67 views

NMinimize vs Simulated Annealing [closed]

Update I would find the global minima, the plotting shows that this function has many local minima. ...
0
votes
0answers
43 views

How to obtain the PDF of variable that is square of a Rician distributed variable? [closed]

If a random variable $X$ is Rician distributed with PDF $f_X(x)$ where $$f_X(x)=\frac{2x}{\alpha}\text{exp}\left(\frac{-(x^2+v^2)}{\alpha}\right)I_0\left(\frac{2xv}{\alpha}\right)$$ Then what is ...
0
votes
0answers
33 views

Reduce expressions modulo quadratic monomials more efficiently? [on hold]

I need to evaluate a function of the matrix $\begin{pmatrix}A & B\\ C&D\end{pmatrix}$ and arbitrary odd primes $p$ and $q$. Moreover, I need to set all non-linear terms in the $A,B,C$ and $D$ ...
1
vote
1answer
53 views

Graph not plotting any points [closed]

f [x_] := (x + ln[x] - 3) Plot[f[x], {x, 0, 5}] How come this comes out with an empty graph? I tried this and same results: ...
2
votes
1answer
35 views

Exporting String to NetCDF

I've already read a Q&A stating that because NetCDF does not support primitive string type variables, that it is impossible to export a string to a NetCDF file. For example: ...
3
votes
0answers
35 views

Constraining Function to be positive with NDSolve, Allee effect

I am trying to numerically solve the steady-state behaviour of the Allee effect (with one spatial dimension, diffusion): $\frac{\partial n}{\partial t} = D \frac{\partial^2 n }{\partial x^2} + ...
0
votes
0answers
27 views

Take a derivative of a NIntegrate function (with two argument) [closed]

what I have is a numerical function of SBE[m,T] and I want its derivative with respect to T. Here is what I wrote, ...
2
votes
0answers
42 views

KernelObject appears dead problem [closed]

my cluster got 24 cores And I use this setting to do parallel computing ...
2
votes
0answers
93 views

What is a good way to model fluid stream contours around airfoils?

I am an undergraduate student and am doing a project on conformal mapping for my complex analysis class. I have had one heck of a time trying to plot stream function contours to model fluid flow in ...
6
votes
1answer
80 views

Wolfram Cloud and reCAPTCHA

Is there a piece of Wolfram Language code out there that integrates reCAPTCHA (for human verification) into the Wolfram Cloud environment? This is what the reCaptcha service looks like (in Swedish): ...
-1
votes
1answer
47 views

How to run code and do data analysis in mathematica [closed]

I am a beginner in Mathematica. I'd like to do something like the following: write code- ouput- write code- output... But when I created my own notebook and copy the code above, I don't know how to ...
0
votes
2answers
125 views

The Disc and Washer Methods [closed]

How is it possible to demonstrate a visual solid of revolution utilizing the washer method? For example to show the shape formed by rotating the region bounded by $y=(x-2)^4, 8x-y=16$ about $x=10$? ...
-5
votes
0answers
36 views

System of partial differential equations using Mathematica [closed]

As you can I am trying to solve a system of partial differential equation using MATHEMATICA. However, I could not. Can anyone provide me with a code which is able to solve such equations in ...
3
votes
0answers
74 views

Kernel crashes when computing finite difference mixed derivative with respect to y & z but works fine when computing with respect to x & y or x & z?

I am using Mathematica 10.4.0 on Ubuntu 16.04. I am trying to solve a set of differential equations using finite difference method on an NxNxN cubic grid (x, y, z directions). I am getting a weird ...
5
votes
1answer
72 views

Finding the correct boundary conditions to a specific problem

I want to reproduce the following problem in the figure: $$\phi''+c\phi'\sqrt{m^2\phi^2+\phi'^2}+m^2\phi=0$$ where $\phi=\phi(x)$ with $x \in (-\infty,\infty)$, $c=\sqrt{3/2} \ $ and $m=0.2$. ...
0
votes
0answers
38 views

How dangerous is 'Overflow occurred in computation' message? [closed]

I got this warning at the end of rather lengthy symbolic calculation. The result seems feasible, but I am interested, whether this problem may bight be later, so to say. Thanks=)
3
votes
2answers
89 views

Switching Differential Equation in NDSolve

I am trying to solve the following system of differential equations using NDSolve: $\dot{z}_t=.5(1-z_t)$ $\dot{y}_t=.05y_t+z_t-x_t$ subject to the following constraint: $-y_t-z_t\le0$ where $z_t$ ...
7
votes
1answer
111 views

Left Right Straight Maze

How do I generate a Left, Right and Straight ordering for a maze for something like the following? Similar to generating a left and right ordering for someone walking in real life. ...

15 30 50 per page