mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 01:08:15 +01:00
[apps/shared] CartesianFunction: evaluating function out of its domain
returns NAN
This commit is contained in:
@@ -203,7 +203,7 @@ CartesianFunction::CartesianFunctionRecordDataBuffer * CartesianFunction::record
|
||||
|
||||
template<typename T>
|
||||
Coordinate2D<T> CartesianFunction::templatedApproximateAtParameter(T t, Poincare::Context * context) const {
|
||||
if (isCircularlyDefined(context)) {
|
||||
if (isCircularlyDefined(context) || t < tMin() || t > tMax()) {
|
||||
return Coordinate2D<T>(NAN, NAN);
|
||||
}
|
||||
constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1;
|
||||
|
||||
Reference in New Issue
Block a user