Questions tagged [error]

Questions seeking help understanding error messages and fixing errors.

Filter by
Sorted by
Tagged with
0
votes
2answers
78 views

Function works only after printing variables inside [closed]

For the input: pickTwoParts[{a, b, c}], the right output is: {{a, a b, a c, b, b c, c}, {b c, c, b, a c, a, a b}}. I am getting that output, but only after uncommenting the lines: ...
4
votes
2answers
404 views

FindDistributionParameters gives an error for a mixture of user defined sinh-arcsinh distributions

I have some data (1593 values). I first binned it using the Knuth rule and fitted a function that is a linear combination of two sinh-arcsinh functions. I then ...
1
vote
1answer
2k views

Plot x and y ErrorBars from file

If I have a set of data like this one saved in a txt file ...
8
votes
1answer
185 views

How to avoid the pink background in GUIs without using Quiet

GUIs may generate warnings while internal evaluations are processed. In this example I intentionally introduce a line that will generate a warning. Warnings are useful, so I don't want to quiet them ...
0
votes
1answer
120 views

NDSolve::bcsol?

I'm writing a code to numerically solve a differential equation. It has to repeat the process several times since there is a variable involved which is unknown, and the equation is fit to some ...
1
vote
1answer
199 views

NMinimize error: Nearest::neard:

I have this function GuessError, here's a plot assuming a single variable x, Plot[GuessError[10^x, etc..], {x, 8, 12}] , being etc some more variables which are ...
2
votes
1answer
337 views

Why isn't Table iterator value inserted in failed NIntegrate arguments?

Consider this simplest example: Table[{z, NIntegrate[f[x], {x, 0, z}]}, {z, {1}}] Here f is not defined, so ...
1
vote
0answers
59 views

Understanding HoldSequence and ReleaseHoldSequence in Error Handling

I was playing with GeneralUtilities`PrintDefinitions in V10.1, and find some of native Mathematica functions using ...
4
votes
1answer
248 views

Want NIntegrate to catch error message

Really stuck with this. When I use NIntegrate, it sometimes prints a message like NIntegrate::ncvb: "NIntegrate failed to converge to prescribed accuracy after ...
0
votes
1answer
153 views

NIntegrate producing SetDelayed::write message [closed]

I used NIntegrate to calculate an integral with the final limit as a variable, which later will be listed in a table, ...
2
votes
1answer
284 views

How can I correct error message that appears each time I launch Mathematica?

Each time I launch Mathematica I get the following error message : The specified setting for the option Magnification cannot be used. I have gone to the option inspector and have confirmed that the ...
0
votes
1answer
123 views

SIGSEGV Error on Plotting Tubes

I have code to plot some "2 dimensional" points in 3D space, and connect a line between them (because ListLinePlot3D takes way to long/hangs), which works fine: ...
3
votes
3answers
549 views

Reduce gives wrong solutions

Given the follwing system of equations eqs = { x/(x - 2) - 4/y == 1, x/(2 + 1/y) == y/(3 - 1/x) } Although the domain of this system does not contain ...
0
votes
1answer
71 views

Using Check[] on multiple statements

I am using a loop to run run multiple fits. If a fit fails, I don't want it to either appear in my data or to affect later fits so I am using the Check[] function to catch if any errors occurred (I'm ...
0
votes
1answer
57 views

aborting at a message, but still save data

This may be an easy question, but I can't find it anywhere. I have a code which solves linear equations in a do loop (possibly compiled) using LinearSolve. To save the results I use Reap and Sow. It ...
0
votes
1answer
69 views

Null result with Catch and Throw [closed]

I am trying to solve a physics problem of a man in a ferris wheel that needs to jump off at a certain angle to land in a boat that is moving at a constant velocity, however, whenever I compile my code,...
2
votes
1answer
748 views

Why this error?

f[x_] := Piecewise[{{1, -0.5 <= x <= 0.5}}, 0]; ProbabilityDistribution[ Integrate[f[a], {a, x - 0.5, x + 0.5}], {x, -2, 2}] output: "Unable to prove that ...
2
votes
1answer
5k views

Error with using NDSolve [duplicate]

I am currently trying to numerically solve a system of differential equations. Here is my code: ...
10
votes
1answer
275 views

Enigmatic message about MaxBend

Referring to the method I proposed for Problem with ParametricPlot Mathematica 10.0.2 throws an enigmatic error message: ...
0
votes
1answer
339 views

Minimization Nminimize nnum error

I have imported data (mat is the name, 1x100 dimensional vector)and written a likelihood function for normal distribution. ...
11
votes
1answer
438 views

Compilation of Total with compensated summation

I sometimes obtain an unexpected error when trying to call a compiled version of Total with compensated summation turned on. More specifically I define ...
14
votes
2answers
2k views

How to find out where an error occurs?

I got this error when using Mathematica: ...
1
vote
2answers
74 views

How to catch and fix a warning/error that goes away almost immediately?

I wrote the following code ...
1
vote
1answer
165 views

How to switch on error messages in mathematica 10?

I have mathematica 10 and 8 on different computers. Version 8 always shows me the error message about what goes wrong while I don't see any error message in version 10. I find it quite inconvenient as ...
0
votes
2answers
659 views

NonlinearModelFit errors

I have read through other forum posts and have seen a few things that I thought would help but I am still having issues. I'm trying to fit some calibration data and am at first getting the error ...
1
vote
2answers
214 views

Using manipulate with a defined funtion to solve a ODE

As many in this community I'm new in Mathematica and while exploring the numerical solver for differential equations, I tried: ...
2
votes
2answers
91 views

Cannot use the MultinormalDistribution code

I am trying to use the MultinormalDistribution code with the Quantile function to get the 0.01 quartile of the multinormal ...
1
vote
1answer
46 views

Generation of list of values for small gap among values

I need to run a loop as Table[expr,{i,imin,imax,di}] where I want di to be as small as order of ...
1
vote
1answer
4k views

error DSolve::dsfun: cannot be used as a function

I tried to solve system of ODEs, but something was wrong. ...
1
vote
1answer
368 views

How to do predicate logic in Mathematica

I'm trying to formalize and analyze the following reasoning: All equilateral triangles are isosceles triangles. Some triangles are not equilateral triangles. Therefore some triangles are not ...
0
votes
1answer
185 views

Correct use of Solve inside Compile

I have a function that behaves itself, but I want to make it much faster so I tried to put it into a compilable form After much fiddling I can't get it to work. Here's one of my failed attempts: <...
2
votes
1answer
85 views

Why do messages only appear first time I evaluate my compiled function?

I declare my compiled function: ...
0
votes
2answers
2k views

Unknown option LegendPosition (even after Needs[“PlotLegends`”]) (Mathematica 10.0)

I'm running Mathematica 10.0 for Students. When I tried ...
3
votes
1answer
232 views

Handling error in WSTP program C/C++

I have a program, written in C++, which uses WSTP to communicate with Mathematica 10 (i.e., linked using Install["name_program"]). How should my code report an ...
0
votes
1answer
54 views

Why does this cause an error? [closed]

In[73]:= f[x_] := Save["C:\\Users\\user\\Desktop\\file", x <> x] f["###"] During evaluation of In[73]:= Save::sym: Argument ###:f3b5.01<>.01:f3b5###:...
5
votes
2answers
227 views

Why can't a Plot be rendered by Graphics if it's a member of a list?

I grabbed the code to render a gear from a Mathematica Demo, but I'm having difficulty reproducing the way it's to be used: ...
0
votes
2answers
3k views

Why won't this graph? [closed]

I'm trying to sketch level curve for z=k for the specified values of k={-2,-1,2} of z= 4x^2 - 4x + y^2 + 2y So I changed this(...
1
vote
2answers
364 views

Maximum likelihood estimation based on frequency table

I have a frequency table of grades, I'm trying to estimate the distribution as a truncated normal distribution (a grade below 65 is a failing grade and doesn't count). Since I don't have the actual "...
2
votes
1answer
342 views

Compile a MeijerG function [duplicate]

I am not very experienced with Compile, I tried to use it for a Meijer-G function ...
4
votes
2answers
4k views

SystemException[“MemoryAllocationFailure”, …] with NMaximize

I have a complicated analytical expression that needs to be maximized with respect to a parameter t: ...
10
votes
1answer
308 views

Can a System symbol spontaneously leak into a Global namespace?

During the development of a program to process bioinformatic data, I have encountered a peculiar shadow warning: Global...
4
votes
1answer
507 views

What kind of PDF files that MMA does not read (import)

SORRY that I have tried 5 different files, which were too complicated for MMA to import. So I thought that maybe it just does not read any files. But I was wrong. So edited my question. In here, is a ...
1
vote
1answer
245 views

Compiling If statement

I'm tring to use Compile in the following code, but it gives me an error message that I don't understand: ...
1
vote
1answer
750 views

FindFit::nrlnum: error with FindFit

I am trying to write a code to fit actual data of the orbit of a star with Mathematica 8. First I tried to write a code to fit a mock orbit, using the Application with differential equations (the ...
1
vote
1answer
56 views

A While loop where the loop clause can receive problematic input

Consider the following highly artificial example: ...
0
votes
0answers
59 views

Two installations of MMA 10.0.1.0 differ in behavior [duplicate]

I'm seeking advice on how to track down what might cause the following difference in behavior. I have two independent installations of MMA 10.0.1.0, both on Mac OS X Mavericks on identical x86 Mac ...
0
votes
1answer
162 views

Error with numerical summation - how to specify “n choose r”?

I'm trying to do the following sum: NSum[((50000 - x) choose x)*(1/3^15)^x*((3^15 - x)/3^15)^(50000 - x), {x, 1, 4}] But I keep getting an error saying: ...
2
votes
0answers
107 views

Is there a minor bug in Neal Alexander's TopologicalSortAll[]?

There is an amazing answer to this question: All possible topological orderings of a graph By Neal Alexander. However, as user "dark blue" (I am not this user) notes: ...
3
votes
4answers
638 views

Trouble with Position[] [duplicate]

I am in trouble with Position, Although my example works as expected it throws a warning. Position[{{a,b},{a,c},{a,b}}, _?(#[[2]]==b&), {1}] During ...
1
vote
0answers
270 views

What does this Java error mean? Why is it raised?

I want to launch some kernels on a cluster that uses SGE. The server's operating system is Linux Cent-OS. According to Mathematica documentation, I've added these commands inside my code: ...