Questions tagged [warning-messages]
The warning-messages tag has no usage guidance.
1,194
questions
0
votes
0answers
40 views
NDSolve. Can I use numerical ODE solution as PDE initial condition? [closed]
I want to use numerical solution of the ODE as an initial condition for the 1D linear PDE. But it seems Wolfram Mathematica has some issues with it.
Let's consider an example. Here we have nonlinear ...
0
votes
2answers
78 views
Piecewise function within a vectorplot
I'm trying to do a vector plot with some code that includes piecewise functions and I keep getting the following error:
Part::partw: Part 1 of {} does not exist.
Here is the code:
...
0
votes
0answers
16 views
How do I set the “UnpackMessage” to be “True” permanently?
Looking at the top answer here, talking about packed arrays in Mathematica, I have realized that very often Mathematica silently unpacking an array explains mysterious slowdowns in my own code as well....
0
votes
0answers
24 views
step size effectively 0 error in ndsolve
I am trying to solve the following equations in Mathematica using NDSolve.
1.Given Data
...
0
votes
1answer
14 views
Outputting a warning message tag as a string, from a function running inside of a table
I want to print the messages or warning message tags for NonlinearModelFit when batch fitting data. For example, I will import and fit my data with something like
<...
0
votes
2answers
36 views
Warning when confluent hypergeometric function HypergeometricU is wrong?
From the definition as an integral (HypergeometricU/details), this function must be positive. However, it gives negative numbers in some cases with no warning of a potential error. For example,
In[...
0
votes
0answers
21 views
How to copy a number from an error message? [duplicate]
Is there any way to copy a number from an error message and assign it to a variable, without manually doing it?
For instance, I am trying to solve some coupled Differential equations as follows:
...
3
votes
2answers
127 views
Why does f[set_]:=AppendTo[set,5] not work when applying f to a set?
The following code works
ccc = {};
AppendTo[ccc, 5];
ccc
and gives the output {5}
However, the following code does not work:
<...
0
votes
1answer
39 views
Restore messages function to the default ones
Times ago I used the command Off[NDSolve::tag].
Now I've been forgetting which message I removed and I would like to restore it.
Someone knows if is there a way to reset all the default messages ?
1
vote
3answers
139 views
Error with NIntegrate of a two variables integration
This is mathematica code for my integration,
...
3
votes
1answer
48 views
“Data not in notebook; Store now”
I'm getting a "Data not in notebook; Store now" message. Where is this data stored? I looked at my working directory and found nothing.
I searched and could not find answer to this question ...
0
votes
0answers
22 views
My mathematica is broken, can someone help? (error “Kernet is not responding to Dynamic Evaluation”)
I have been doing some intensity plots on mathematica and it was working fine. It stopped responding when I tried to run 'Animate' command to try to see a simulation of the same intensity plots that I ...
0
votes
1answer
35 views
Define a function with a custom warning message
Is it possible to define a function with a custom warning message ?
For example,
...
1
vote
1answer
54 views
ClassifierMeasurements returns strange errors
I am following the example listed on this page ResNet 50 to train a custom classifier and inspect the outcome with ClassifierMeasurements. My training set has 443 images from more than 30 classes. The ...
0
votes
1answer
79 views
Finding the exact symbolic formula for a function defined recursively
Let me introduce the problem.
I have the following functions;
The first one is defined recursively
$h(i,j):=\frac{i-1}{j+1}h(i+2,j-2)$ and $h(i,0)=1$ where $i$ and $j$ are even integers, greater than $...
0
votes
0answers
24 views
A ChannelListen error message appears every time I start Mathematica. How can I stop this?
Every time I start up Mathematica, I am greeted with the following message:
...
3
votes
1answer
46 views
warning in Position + IntersectingQ
Why there is a warning message (with correct output) for the following code ?
...
1
vote
1answer
75 views
Plot Styling Errors (PlotLabel, PlotTheme, Inset not appearing)
Question:
I'm trying to pull together a graph with labelled axes, a title, and an inset box with information relating to the plot such as the y-intercept (A in this code) and it's uncertainty. However,...
2
votes
0answers
44 views
DAE solver fails for system of coupled partial differential equations
I am trying to run the following code to solve a system of coupled differential equation:
...
0
votes
1answer
35 views
Part Specification is longer than depth of object & Transposing Errors
In trying to recreate results from another question I had asked (here)
Code is:
...
0
votes
1answer
70 views
Why does FindDistributionParameters[] fail to converge for this distribution? [closed]
During testing my code for calculate parameters
The following exception is thrown:
...
0
votes
1answer
46 views
How to refer a solve answer to NDsolve [closed]
I don't know how to refer a solution of Solve to compute it in NDSolve, here's my code
...
4
votes
1answer
67 views
Plotting an InterpolatingFunction outside its domain doesn't raise error messages
Let's make an InterpolatingFunction:
if = Interpolation[Transpose[{#, Sin@#} &@Range[0, 4, 0.1]]];
As expected, evaluating ...
0
votes
1answer
91 views
Can you explain strange behaviour of a plot masked with $(2*(-1 + Abs[x]))/(-2 + Abs[Abs[-1 + x] - Abs[1 + x]])$?
I made a code which draws a plot of $5-x^2$ masked with a kind of rectangular function in order to brake the branches of parabola at the points ...
5
votes
2answers
275 views
How to plot multifactorial function?
The multifactorial function can be extended to the reals (see TheSimpliFire answer) like so:
It follows that we can extend the multifactorial function to the reals ...
0
votes
0answers
24 views
NArgMin with Root functions
I'm trying to minimize an error function sumt to find some parameters S, s0, si :
...
0
votes
0answers
35 views
NMinimize - Strange “function value is not a number” error
I am seeing strange behaviour in some code I have written that uses NMaxmimize. Here is a minimal working example:
...
1
vote
0answers
55 views
Warnings while solving a system of coupled differential equations
I have a system of differential equations, given by
...
1
vote
0answers
26 views
Manipulate Error [closed]
I have the following code, which allows me to compile specific Manipulate plots on a separate plot. Unfortunately, I have a small syntax error which I can't seem to ...
3
votes
1answer
74 views
NIntegrate fails to give non-numerical value error, instead returns zero
When I evaluate
NIntegrate[a(x - y)^2, {x, 0, 1}, {y, 0, 1}, AccuracyGoal -> 8]
Mathematica returns 0 without giving a non-...
4
votes
0answers
89 views
DynamicModule Error when assigning Nothing to variable
Assigning Nothing to a variable inside Module works as expected:
...
0
votes
0answers
40 views
Error in function `WordList` in version 12.1
I want to list the number of different kinds of words in the English dictionary (Version 12.1 for Win10 (64-bit)):
...
0
votes
0answers
53 views
Writing a function that has two inputs
Write a function called DOTPRODUCT that has two inputs u and v,
assumed to be two non-empty lists of numbers of arbitrary length,
checks that the two lists are of equal length, prints an error message ...
1
vote
1answer
33 views
3
votes
1answer
75 views
DSolve fails on initial value problem of 1st order ODE
I've been trying to solve this initial value problem using DSolve[]:
$$
\frac{dy}{dt}=1+t\space \sin(t\space y),\quad y(0)=0, \quad t=[0,2]
$$
...
1
vote
1answer
76 views
1
vote
5answers
173 views
Finding polynomial coefficients returns Tag Plus is Protected [closed]
I'm trying to find the coefficients of a polynomial $P(x)$. Please see following equation.
$$P(x+2)+P(x-2)=2x+8$$
CoefficientList[P(x+2)+P(x-2)=2x+8,P(x)]
However ...
1
vote
0answers
41 views
Problem initializing xTensor package
I am using Mathematica 12.2 on Windows 10 and I am using the xTensor package for my tensor calculations.
However, since today, I cannot run the xTensor package. I get the following error. Can anybody ...
3
votes
1answer
60 views
Too small to represent and Chop in inaccessible algorithm
Overview
I want to apply a specified Chop function to every step in an function call in Mathematica (in my case LegendreP), ...
2
votes
0answers
91 views
Trying to solve a PDE — getting warnings I don't understand
Consider the partial differential equation
...
0
votes
1answer
72 views
List Plot Error [closed]
I've produced this simulation of a superhetrodyne radio receiver. I'm pretty sure it's solid for the most part but I'm getting a list plot error.
ListPlot::lpn: {{{1.,0.},{2.,0.00104953},{3.,0....
1
vote
0answers
44 views
NDSolve - interpolation or machine precision problem
For the following equations;
$$\begin{align}
\frac{\partial \text{NN}(t)}{\partial t}&=-\frac{(c \times\text{Sigma})}{\pi\times L\times \text{Omega}^2} \text{NN}(t) \times\text{Phi}(t)-\frac{\...
0
votes
1answer
111 views
When I define a Piecewise function containing a solution to a partial differential equation, the function cannot be evaluated numerically
I need to find an integral, in which there is a function
YO [x_] =
Sum[E^(((I h PI)/(λ f))x^2) Subscript[Y, h][x, z = 13.5], {h, - 5, - 1}] /. s
where ...
3
votes
0answers
49 views
Mathematica gives $RecursionLimit to every single input [closed]
I have been using Mathematica Cloud for about 3 months. About twice a month I encounter a strange and perplexing error that I have, until now, overlooked as an immovable bug. Every function I input, ...
5
votes
1answer
115 views
'Block' with 'Compile' gives an error
Here is a minimal example to the problem I face when using Compile with Block:
...
2
votes
1answer
47 views
Getting error Solve::units [closed]
I'm trying to solve the following formula for i, given values for all other variables. There are two equations, the first one is a formula to show the transit ...
6
votes
2answers
695 views
What is the reason for failing to solve the following equation?
I have a simple differential equation
$$
\frac{df(T)}{dT} = g(T)(f(T)-f_{\text{eq}}(T)),
$$
where $g,f_{\text{eq}}$ are some smooth functions, and $T$ is an analog of time, but the evolution ...
1
vote
1answer
99 views
Find minimum of a function defined via NIntegrate [closed]
I need to find the minimum of a function f(t) = int g(t,x) dx over [0,1].
I used
g[t_, x_] := *huge expression*
f[t_?NumericQ] := NIntegrate[g[t, x], {x, -1, 1}]
...
5
votes
1answer
186 views
Step size is effectively zero
I've been trying to solve Bodewadt flow equations which is a system of differential equations.
$$\begin{align*}
F^2 - G^2 + HF' - F'' + 1 &= 0 \\
2GF + HG'-G'' &= 0 \\
2F + H' &= 0
\end{...
0
votes
0answers
53 views
How to solve this linear complementarity problem with NDSolve or other functions? The arguments should be ordered consistently
I want to find a numerical solution of $\omega(t,q)$, where $t\in[0,T]$ and $q\in[0,N]$. $q_t$ is a determinstic w.r.t $t$, other unmentioned parameters can be fullfilled or given by the user.
I met ...