Ask Your Question

EnlightenedFunk's profile - activity

2019-06-13 03:42:06 -0500 received badge  Nice Question (source)
2019-06-12 08:48:46 -0500 commented answer Derivative of a CSV data set

Hello this might seem annoying but is there a way to export that derivative data into a CSV?

2019-06-12 08:46:36 -0500 received badge  Scholar (source)
2019-06-11 10:32:19 -0500 commented question Derivative of a CSV data set

@slelievre I entered as many data points there is just a lot more data.

2019-06-10 08:58:02 -0500 received badge  Supporter (source)
2019-06-10 08:37:32 -0500 commented question Derivative of a CSV data set

@slelievre Ok I will, it keeps saying greater thaan 60 points to upload file....

2019-06-09 11:18:23 -0500 asked a question Derivative of a CSV data set

I am trying to get the derivative of this CSV data set, and this is code I have so far I thought it would be similar to this matlab code:

dy=diff(y)./diff(x)
plot(x(2:end),dy)

Data Set:

0,2.58612
0.00616025,2.20018
0.0123205,1.56186
0.0184807,0.371172
0.024641,0.327379
0.0308012,0.368863
0.0369615,0.322228
0.0431217,0.171899
0.049282,-0.0635003
0.0554422,-0.110747
0.0616025,0.0701394
0.0677627,0.202381
0.073923,0.241264
0.0800832,0.193697
0.0862434,0.0797016
0.0924037,0.0103144
0.0985639,0.096153
0.104724,0.216782

There's more data...a lot more This is my attempt at the code:

import csv
data = list( csv.reader(open('C:/images/TEST1.txt','rU')) )
data = map(lambda x: [float(x[0]),float(x[1])],data)
P = list_plot(data, plotjoined= True, color = 'blue', xmin = 0, xmax = 3)
TeraHertz = text('Tera Hertz', (1.5,-.9)) 
Absorbance = text('Absorbance', (0.8,5))
g = P + TeraHertz + Absorbance
g.show()
latex(g)
g.save('TeraHertzTEST1.pgf')
t=diff(x[1]).diff(x[0])
l = plot(x[0],t)
l.show()
2019-05-30 17:48:59 -0500 received badge  Editor (source)
2019-05-30 17:47:45 -0500 asked a question False Directory

The directory where kpsewhich -var-value=TEXMFHOME the command takes me is not real in my commuter. I am using this help this one

because the mismatch occurred any clue to how I could change that directory to something else and get sage tex working?

C:/Users/Light_Wisdom/texmf False Directory.

Blockquote

2019-05-23 19:20:04 -0500 asked a question How to use sagetex?

https://ask.sagemath.org/question/891...

I have this question and I downloaded sagemath and I have three applets a console, a shell, and a notebook, and I was wondering how do I do what the person did because I tried the shell multiple times and I moved the sty file into the Latex folder anything I can do to help you help me please let me know? The error I keep getting is this error file not found.

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)