Function reference · Solving
realsolutions
Selects real solutions within an inclusive interval.
For a SolutionSet returned by solve, realsolutions(solutions, lower, upper) filters or materializes real solutions within the requested inclusive interval, including supported integer-indexed periodic families.
For a system result returned by solveeqs, realsolutions(systems, variable, lower, upper) projects the distinct real values of the selected variable into a SolutionSet, rather than returning the full system dictionaries.
Examples
These examples use Nerdamer Notation.
Materialize a periodic family within a specified real interval.
realsolutions(solve(sin(x),x),-2*pi,2*pi)
// → {-2*pi, -pi, 0, pi, 2*pi}Select x-values from a system's solutions.
realsolutions(solveeqs([x+y=3,x-y=1]),x,1,3)
// → {2}Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
realsolutions(solutionSet, lower, upper) | realsolutions(systems, variable, lower, upper)
Parameters
solutionSetOrSystems— A SolutionSet from solve, or a Vector of Dictionary assignments from solveeqs.variable— Required for system results: a plain variable whose distinct real values form the returned SolutionSet.lower— Inclusive finite real lower bound of the requested interval.upper— Inclusive finite real upper bound of the requested interval.
Notes
- A finite interval is required; this operation does not enumerate an infinite family without limits.
- For JavaScript or TypeScript, SolutionSet.generate({ interval: [lower, upper] }) and SolutionSet.generate({ indices: [first, last] }) provide explicit generation operations.
