Maxima Function
inference_result (title, values, numbers)
Constructs an inference_result object of the type returned by the
stats functions. Argument title is a
Maxima string with the name of the procedure; values is a list with
elements of the form symbol = value and numbers is a list
with positive integer numbers ranging from one to length(values),
indicating which values will be shown by default.
Example:
This is a simple example showing results concerning a rectangle. The title of
this object is the string "Rectangle", it stores five results, named
'base, 'height, 'diagonal, 'area,
and 'perimeter, but only the first, second, fifth, and fourth
will be displayed. The 'diagonal is stored in this object, but it is
not displayed; to access its value, make use of function take_inference.
(%i1) load(inference_result)$ (%i2) b: 3$ h: 2$ (%i3) inference_result("Rectangle", ['base=b, 'height=h, 'diagonal=sqrt(b^2+h^2), 'area=b*h, 'perimeter=2*(b+h)], [1,2,5,4] ); | Rectangle | | base = 3 | (%o3) | height = 2 | | perimeter = 10 | | area = 6 (%i4) take_inference('diagonal,%); (%o4) sqrt(13)