Changes between Version 1 and Version 2 of Ticket #13355, comment 9


Ignore:
Timestamp:
07/09/13 07:03:28 (6 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13355, comment 9

    v1 v2  
    11Hello,
    22
    3 I don't understand your example. You did not even defined `f`, how do you want to plot it? It has nothing to do with complex values
     3I don't understand your example. You define `f` to take complex values, how do you want to plot it as a real function? Could you be more explicit about the problem you intend to solve ? What kind of picture you would like to obtain with such input?
     4
     5Note that for that purpose, there is yet `complex_plot`
     6{{{
    47{{{
    58sage: def evalf_func(self,x,parent=None):
     
    710....:
    811sage: f = function('f', evalf_func=evalf_func)
    9 sage: float(f(3))
    10 Traceback (most recent call last)
    11 ...
    12 TypeError: unable to simplify to float approximation
     12sage: complex_plot(f, (-1,1), (-1,1)).show()
    1313}}}
    14 
    15 Could you be more explicit about the problem you intend to solve ?