Substitution using function-call syntax and unnamed arguments has been removed. You can use named arguments instead

asked 2024-04-06 07:24:17 +0200

leejt gravatar image

updated 2024-04-07 16:25:28 +0200

Max Alekseyev gravatar image

I am trying to evaluate a definite integral whose upper limit is a variable. Here are the lines,

var('x')
var('x_')

assume(x,'real',x>0)
assume(x_,'real',x_>=0)

f(x) = integrate(1/sqrt(0.3*(1+x_)^3+0.7),x_,0,x)

And then I want to plot f as a function of x,

plot(f(x),(x,0.1,10))

This produces an error with the following error message,

verbose 0 (3897: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 200 points.
verbose 0 (3897: plot.py, generate_plot_points) Last error message: 'Substitution using function-call syntax and unnamed arguments has been removed. You can use named arguments instead, like EXPR(x=..., y=...)'

Can anyone suggest what I'm doing wrong?

Thank you.

edit retag flag offensive close merge delete

Comments

This looks like a very strange bug. The workaround plot(lambda x0: f(x0), (x,0.1,10)) works in the meantime.

rburing gravatar imagerburing ( 2024-04-06 10:01:47 +0200 )edit

Please report the issue at https://github.com/sagemath/sage/issues

Max Alekseyev gravatar imageMax Alekseyev ( 2024-04-07 16:35:01 +0200 )edit

I reported the issue (issue #37776). But on the GitHub issues page can't seem to see what I typed under the headings, "Steps To Reproduce", "Expected Behavior" and "Actual Behavior". Do I need to do anything else?

leejt gravatar imageleejt ( 2024-04-10 01:09:35 +0200 )edit

Yes. issue #37776 is empty. Please edit it and add the content.

Max Alekseyev gravatar imageMax Alekseyev ( 2024-04-10 01:37:03 +0200 )edit

Hi Max,

I have added some content to the issue (https://github.com/sagemath/sage/issu...).

Thank you for your guidance.

leejt gravatar imageleejt ( 2024-04-10 07:10:27 +0200 )edit