Ask Your Question

EnlightenedFunk's profile - activity

2019-02-20 07:21:05 -0500 received badge  Nice Question (source)
2019-02-19 14:05:57 -0500 commented answer Latex Transition Problem

I want to latex out the figure that is done in the graph?

2019-02-19 12:50:15 -0500 commented question Trouble Plotting a Function

Its ok I am just going to delete the question I realized the error.

2019-02-19 12:49:01 -0500 asked a question Latex Transition Problem

I have been getting this error UnboundLocalError: local variable 'xmin' referenced before assignment and I have been wondering why the error is present. And how I could fix it to get the LaTex for it.

Sage: from sage.graphs.graph_plot import GraphPlot
Sage: options = {
....:   'vertex_size': 200,
....:   'vertex_labels': True,
....:   'layout': None,
....:   'edge_style': 'solid',
....:   'edge_color': 'black',
....:   'edge_colors': None,
....:   'edge_labels': False,
....:   'iterations': 50,
....:   'tree_orientation': 'down',
....:   'heights': None,
....:   'graph_border': False,
....:   'talk': False,
....:   'color_by_label': False,
....:   'partition': None,
....:   'dist': .075,
....:   'max_dist': 1.5,
....:   'loop_size': .075,
....:   'edge_labels_background': 'transparent'}

Sage:xmin = -10 
     xmax = 10
     f = plot((x^2-2)/(x+2), (x,xmin, xmax), ymin = -20, ymax = 20)
     pt1 = point((-2,2), rgbcolor='blue', pointsize=40)
     z = Graph((f+pt1).show(xmin= xmin, xmax= xmax, ymin=-20, ymax=20))
     GP = GraphPlot(z, options)
Sage:z.set_latex_options(
....: graphic_size=(5,5),
....: vertex_size=0.2,
....: edge_thickness=0.04,
....: edge_color='green',
....: vertex_color='green',
....: vertex_label_color='red'
....: )
Sage: latex(z)
2019-02-19 11:54:23 -0500 commented question Trouble Plotting a Function

Yes I reran the code, and it worked fine.

2019-02-19 11:48:47 -0500 commented question Trouble Plotting a Function

Too many arguments, and that it only accepts 1.

2019-02-19 11:11:47 -0500 asked a question Trouble Plotting a Function

This function is seemingly not plotting and it keeps saying theirs too many arguments in the 2nd line. Any thoughts...

f = (1*x^2-2)/(1*x-2)
plot(f, x,-10,10)
2019-02-18 18:31:17 -0500 received badge  Student (source)
2019-02-18 18:20:24 -0500 asked a question A function being an input

I have the following code and I am trying to get an output, and I keep getting an error y is not defined. Could you please help?

 var('y')
 f = sage_eval(str(input("What is the function:" )), locals = {'y' == y})
 integral(f,y,0,16)