All Questions

56 views

Stopping NDSolver at time of error

I am using NDSolver and WhenEvent to solve a system of differential equations. I get this message: ...
159 views

Confusion with SplineFit (Angle calculation)

This question is continuation to this other one I am creating polymers (where each monomer is of equal length) using this method: ...
60 views

How to NDSolve a set of equations, one of which itself contains NIntegrate of a desired function?

How to NDSolve a set of equations, one of which itself contains NIntegrate of a desired function waited to be solved by NDSolve first? For example, ...
61 views

How to use Buttons to run alternate Manipulate functions

I wish to use Buttons to trigger alternate Manipulates. According to the documentation: "The first argument to Button is the label" ....and the "second argument is the function that will ...
203 views

...
109 views

Difficulty with Manipulate that has same variables as other code lines in a notebook

If I write this: ...
104 views

Color points in ListPointPlot3D

I have some 3d points with coordinates and a value assigned to each point. I want to plot the points and depending on the value use a different color. I have tried to use the answer in ListPlot3D - ...
83 views

I try to make designation a = {Subscript[a,1], Subscript[a,2], Subscript[a,3]} but receive mistake $RecursionLimit::reclim: Recursion depth of 1024 ... 1answer 65 views Arrange equation in normal form Is there a way, or if not, how could one define a function which takes an equation in any form (for example as given by FullSimplify): $$(A+X_0) x+By=3x$$ and ... 1answer 80 views What am I missing!? Simple symbolic sum not simplifying I'm VERY confused: in what universe is the following not zero? FullSimplify[2*Sum[Subscript[f, i], {i, 1, q}] - Sum[2*Subscript[f, i], {i, 1, q}]] Mathematica ... 3answers 96 views Testing for a vector of reals [closed] Suppose I define: RealVector[expr_]:=VectorQ[expr,NumberQ[#]&&Head[#]===Real)]; Then: ... 1answer 85 views How to simulate Placed in workaround for PlotLegends ParametricPlot bug? I'd like Legended output for call like: ... 3answers 319 views Points of Intersection How to numerically find points of intersection between pair of curves (Here,a circle and a parabola) ? Finding it a bit messy as, for a point on one curve, slope of the other is involved. ... 2answers 302 views Color Transfer from colored image into grayscale image At first I did this where image is a grayscale image and example is a colored image ... 1answer 108 views FindDistributionParameters and Hypothesis Testing Please excuse me if I am making any logical error in posting this question since I am not a math major. However, let me post my question. I am trying to fit multivariate parametric distribution to ... 1answer 83 views How to show that an expression is 0 if FullSimplify never finishes I have a huge expression. And I have "checked" numerically that it is 0 for real value variables. However, due to the size and structure of the expression FullSimplify seems to be having a hard time. ... 2answers 218 views Another weird plotting result I asked a question this morning here, which has been resolved. However, I got another problem. I want to add some lines to the graph, which turns out glitched. The code is as follows, ... 2answers 163 views How to get a multiple line plot from a list of lists Following this data input {{{2,4,6,8,9},{342432,435345,564564,56756,9945},{23,356,565,304,564},{3,67,76,44,7}}} The array is the data of three lines. The first ... 2answers 203 views Find sublists of a list that match some conditions Question2:: ... 1answer 156 views Error when attempting to save Notebook. Cause and solution? I am experiencing an error attempting to save a modified Notebook in Mathematica 10 under Windows. The error I get is: ... 4answers 526 views How to add PlotLegends in a Show function? I have multiple ListPlot in a Show where i want to add PlotLegends, but adding the ... 2answers 320 views Create a matrix of matrices using Band and ArrayFlatten [duplicate] I can easily write a simple Band matrix using: SparseArray[{Band[{2, 1}] -> a}, {Dim, Dim}] where a is a number. Now, I ... 2answers 143 views Use only exponents (no radicals) in output expressions Radical symbols ($\sqrt{\,\,\,\,}) are the devil. Is there any way to get mathematica to never use them, and instead express everything as an exponential? i.e. I want ... 2answers 161 views Animation of moving rectangles in 2D from data file I am not very familiar with mathematica but I know the basics so I thought I give it a try. For a project I have to animate rectangles moving around in 2D (later also 3D). The data come from a C ... 2answers 150 views How can I remove edges from my DiscretePlot? By default, DiscretePlot displays "edges" along the sides and, prominently, align the top when ExtentSize -> Full is set. For ... 1answer 137 views Why evaluation doesn't fail if arguments are invalid? [duplicate] Sorry for a noob question, but this is something that I wonder about each time I work with Mathematica. Coming from standard programming languages (Python and Java), I expect my functions to fail ... 2answers 238 views Matrix exponential via Cayley-Hamilton Theorem I'm attempting to calculate the exponential of a matrix via Cayley-Hamilton theorem. (Following the "concrete example" from http://en.wikipedia.org/wiki/Cayley%E2%80%93Hamilton_theorem) I am having ... 1answer 64 views How can I automatically name files being exported based on input parameters I have Mathematica notebook that performs some operation say a=2 b=3 c=5 d=4 how do I set the output file after evaluation to be named using the values ... 1answer 185 views Wrapping at evaluation for inline cell I've been playing with inline evaluation and I've came to the conclusion that it's most convenient to put the Dynamic@ inside the inline cell, so I've started to ... 1answer 297 views Prove (or check) an expression is positive given constraints on variables? I'm trying to figure out whether an expression is always positive given positive parameters. When the expression is complicated, I can't do this by eye. Is there any way to make Mathematica prove ... 2answers 228 views Plotting a section of an hemisphere I'm writing a little package in Mathematica for geology where a particular stone may be approximated as an hemisphere. Anyway this is a rough estimation because a real hemisphere has its height as ... 1answer 193 views Order of symbols in Graphics labels Do you have any idea how to force an order of Greek letter in the graphics? When I type in AxesLabel -> {Cost, Δ OverBar[π]} the order is π Δ. How can I ... 3answers 166 views Join matrix based on conditions Given the following matrix: ... 1answer 318 views Typesetting - entering derivative in traditional form I am trying to work out how I enter a differential in standard notation? I am familiar with using D, but everything I have tried to enter a differential has failed. ... 1answer 291 views Selecting every last element of a nested list I couldn't find a similar question so I decided to ask this one. I have a nested list with many sublists of equal length. To make things easier let's say it's like that: ... 2answers 69 views Specifying an array with a specific number of copies of two elements To specify an array of length L in Mathematica, where each entry is someElement, I'm accustomed to writing: ... 1answer 159 views Show contour area as tooltip? I have contour plots, such as plot = ContourPlot[Sqrt[(x - 2)^2 + (y - 2)^2 - 5], {x, -15, 15}, {y, -15, 15}, Contours -> {4}] /. _Polygon -> Sequence[] I ... 1answer 167 views Using DeleteCases with multiple AstronomicalData properties I am attempting to use AstronomicalData and DeleteCases together to remove invalid cases of two properties while listing the ... 2answers 156 views How to exclude numbers in a series and still plot the graph? [duplicate] I want to plot this:\displaystyle\sum_{n=-{10}\atop n\ne \pm 1}^{10} \dfrac {4i(-1)^{n}n}{(n^2 - 1)^2}e^{inx}$but have no idea how I can exclude the cases for when$ n = \pm 1 \$. I don't wish to ...
290 views

I would like to display the following header on of each page of an exported pdf specificTitle XXX XXX should be the ...
84 views

What are the limits of the Prime-functions? [duplicate]

Will Prime and PrimePi test up to 3 * 10^12? Where can I find the limits for these funtions? ...
480 views

...
231 views

Lossless TIFF or PNG export

I'd like to export an output from MatrixPlot[], however, the output file size seems to depend on my specification of the ImageSize -> {..., ...}. How might I export a TIFF with all of the data in the ...
230 views

Unresolved differential equation [closed]

Why can't Mathematica solve this equation as stated? ...
253 views

Exporting HTML code to file.html

I've got a problem with re-saving html code. Lets create html file: ...
125 views

Can you form a list with elements which are terms from an equation?

Is there a command that takes an equation as an input and creates an output with a list of terms in the original equation? Something like: ...
240 views

Is it possible to treat starting values as variables?

I have a problem where I am using FindRoot a gazillion times over a grid of parameters. I need to allow the starting values to vary a bit with the parameters to get it to converge. Here is a simple ...
130 views

The proper way to write the input for a certain series

Mathematica tells the series below doesn't converge. I think it converges. What would the proper way to write things be as an input? ...