User`s guide
Mathematics
5-13
ans =
uint8
Integer type support for prod, cumsum, cumprod, median, mode, and
number theory functions
The following functions now support inputs of any integer data type: median, mode, prod,
cumprod, cumsum, isprime, primes, factor, gcd, lcm, perms, factorial, nextpow2, and
nchoosek.
flintmax function for largest consecutive integer in floating-point
format
Largest consecutive integer in floating-point format. flintmax returns the largest
consecutive integer in IEEE
®
double precision, which is 2^53. Above this value, double-
precision format does not have integer precision, and not all integers can be represented
exactly. flintmax('single') returns the largest consecutive integer in IEEE single
precision, which is single(2^24).
Scale option for airy function
scale is an optional flag you can pass to airy to scale the resulting Airy function. See the
airy reference page for more information.
scatteredInterpolant class that replaces TriScatteredInterp
TriScatteredInterp will be removed in a future release. Use the new
scatteredInterpolant class instead. The scatteredInterpolant class performs
interpolation on 2-D and 3-D scattered data with support for extrapolation outside the
convex hull of the sample points. scatteredInterpolant also supports queries in grid
vector format to conserve memory.
Compatibility Considerations
• scatteredInterpolant supports extrapolation by default. This behavior is
different from that of TriScatteredInterp, which returns NaN when you evaluate