I'm trying to write a summation function that takes 3 arguments, p1 and p2 for the limits and p3 for the function to compute. I cannot get past the testing part of the definition because it only accepts numbers but I want to pass a function for p3.
Is this something that you can work on? I know there may be other tools more useful in this case but I think this would be a good feature to have.
I'm trying to write a summation function that takes 3 arguments, p1 and p2 for the limits and p3 for the function to compute. I cannot get past the testing part of the definition because it only accepts numbers but I want to pass a function for p3.
Is this something that you can work on? I know there may be other tools more useful in this case but I think this would be a good feature to have.