Ask Your Question

Revision history [back]

The problem is that x is a symbolic expression, and it does not have a eint method. So, instead of a sybolic expression, you should try to plot a Python function:

sage: def eint(x): 
....:     return RR(x).eint()

Now, you can plot this function:

sage: plot(eint, [-1,1], frame=True)

Note that i had to transform x as an element of RR, because then plot function iterates over some elements of [-1,1] viewed as Pyhon floats which do not have a eint method either.

The problem is that x is a symbolic expression, and it does not have a eint method. So, instead of plotting a sybolic smybolic expression, you should try to plot a Python function:

sage: def eint(x): 
....:     return RR(x).eint()

Now, you can plot this function:

sage: plot(eint, [-1,1], frame=True)

Note that i had to transform x as an element of RR, because then plot function iterates over some elements of [-1,1] viewed as Pyhon floats which do not have a eint method either.

The problem is that x is a symbolic expression, and it does not have a eint method. So, instead of plotting a smybolic expression, you should try to plot a Python function:

sage: def eint(x): 
....:     return RR(x).eint()

Now, you can plot this function:

sage: plot(eint, [-1,1], frame=True)

Note that i had to transform x as an element of RR, because then plot function iterates over some elements of [-1,1] viewed as Pyhon floats which do not have a eint method either.either:

sage: float(1.1).eint()                                                                                                                                                                                      
AttributeError: 'float' object has no attribute 'eint'

You can see what happens if we omit to convert the elements into RR:

sage: def eint_noconvert(x): 
....:     return x.eint() 

sage: plot(eint_noconvert, [-1,1], frame=True)
AttributeError: 'float' object has no attribute 'eint'

The problem is that x is a symbolic expression, and it does not have a eint method. So, instead of plotting a smybolic expression, you should try to plot a Python function:

sage: def eint(x): 
....:     return RR(x).eint()

Now, you can plot this function:

sage: plot(eint, [-1,1], frame=True)

Note that i had to transform x as an element of RR, because then plot function iterates over some elements of [-1,1] viewed as Pyhon floats which do not have a eint method either:

sage: float(1.1).eint()                                                                                                                                                                                      
float(1.1).eint()
AttributeError: 'float' object has no attribute 'eint'

You can see what happens if we omit to convert the elements into RR:

sage: def eint_noconvert(x): 
....:     return x.eint() 

sage: plot(eint_noconvert, [-1,1], frame=True)
AttributeError: 'float' object has no attribute 'eint'

The problem is that x is a symbolic expression, and it does not have a eint method. So, instead of plotting a smybolic expression, you should try to plot a Python function:

sage: def eint(x): 
....:     return RR(x).eint()

Now, you can plot this function:

sage: plot(eint, [-1,1], frame=True)

Note that i had to transform x as an element of RR, because then plot function iterates over some elements of [-1,1] viewed as Pyhon floats which do not have a eint method either:

sage: float(1.1).eint()
AttributeError: 'float' object has no attribute 'eint'

You can see what happens if we omit to convert the float elements into RR:

sage: def eint_noconvert(x): 
....:     return x.eint() 

sage: plot(eint_noconvert, [-1,1], frame=True)
AttributeError: 'float' object has no attribute 'eint'

The problem is that x is a symbolic expression, and it does not have a eint method. So, instead of plotting a smybolic expression, you should try to plot a Python function:

sage: def eint(x): 
....:     return RR(x).eint()

Now, you can plot this function:

sage: plot(eint, [-1,1], frame=True)

Note that i had to transform x as an element of RR, because then the plot function iterates over some elements of [-1,1] viewed as Pyhon floats which do not have a eint method either:

sage: float(1.1).eint()
AttributeError: 'float' object has no attribute 'eint'

You can see what happens if we omit to convert the float elements into RR:

sage: def eint_noconvert(x): 
....:     return x.eint() 

sage: plot(eint_noconvert, [-1,1], frame=True)
AttributeError: 'float' object has no attribute 'eint'