# Comment not recognised

Issue #14 new
Former user created an issue

This script throws the error shown Whereas deleting the first line runs as expected

https://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot_field.html

x,y = var('x,y') sage: a = plot_vector_field((x,-y), (x,-3,3), (y,-3,3), color='blue') sage: b = plot_vector_field((-y,-x), (x,-3,3), (y,-3,3), color='red') sage: show(a + b)

NameError Traceback (most recent call last) /tmp/ipykernel_679764/1971642779.py in <module> 1 # https://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot_field.html 2 x,y = var('x,y') ----> 3 sage: a = plot_vector_field((x,-y), (x,-Integer(3),Integer(3)), (y,-Integer(3),Integer(3)), color='blue') 4 sage: b = plot_vector_field((-y,-x), (x,-Integer(3),Integer(3)), (y,-Integer(3),Integer(3)), color='red') 5 sage: show(a + b)

NameError: name 'a' is not defined

Comments (0)

  1. Log in to comment