ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 16 Dec 2010 09:04:22 +0100Can I define a function from a list of values?https://ask.sagemath.org/question/7818/can-i-define-a-function-from-a-list-of-values/Hello,
I am doing numerical integration. If I define the resulting function as a list of values, I have to keep track of both the number of values and the distance between them. This also makes showing the domain on a plot more annoying. Could I instead define a function object from the list of values? In other words, I need an array whose index is not necessarily integer. And I need to be able to plot it over a range.
Thanks!chaeslocThu, 16 Dec 2010 09:04:22 +0100https://ask.sagemath.org/question/7818/