# Revision history [back]

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

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.

 2 None Max Alekseyev 5828 ●7 ●38 ●125

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

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

var('x')
var('x_')var('x_')
assume(x,'real',x>0)
assume(x_,'real',x_>=0)
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)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,x,
plot(f(x),(x,0.1,10))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=...)'y=...)'


Can anyone suggest what I'm doing wrong?

Thank you.

 3 None Max Alekseyev 5828 ●7 ●38 ●125

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

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, 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.