Ask Your Question

dasmith88's profile - activity

2018-12-18 05:45:20 -0600 received badge  Taxonomist
2016-11-30 11:28:18 -0600 received badge  Popular Question (source)
2015-07-10 15:09:37 -0600 received badge  Notable Question (source)
2014-06-22 10:18:58 -0600 received badge  Popular Question (source)
2012-06-22 10:12:12 -0600 commented answer Is there a reasonable way to plot arcsec (real) without having a line connecting the branches?

Maybe the right question is whether plot can test for and plot only points that are real -- instead of plotting real parts?

2012-06-22 10:08:39 -0600 commented answer Is there a reasonable way to plot arcsec (real) without having a line connecting the branches?

That works to draw the correct graph, but I don't see how to put it in an interact -- where the student enters the function -- without excluding [-1,1] for every function the student might choose. It's basically a graphing calculator with student control of functions and ranges. And I'm trying not to give too much away. Thanks for pointing out the exclude -- I was missing that one.

2012-06-22 06:56:51 -0600 received badge  Editor (source)
2012-06-22 06:40:52 -0600 asked a question Is there a reasonable way to plot arcsec (real) without having a line connecting the branches?

I'm working on a student exploration of inverse trig functions (interact), and I'd like to plot y=arcsec(x), say from -8 to 8, without having to specify the domain. How do I turn off the spurious line that Sage draws?

2012-04-11 08:02:03 -0600 received badge  Student (source)
2012-04-11 07:43:01 -0600 asked a question size of input_box

how to make an input_box bigger in a sage cell interact?

2012-03-20 09:15:05 -0600 commented answer how to enter a list of data points in an interact?

Yes, it's perfect. For the record, here's the code with a few bells and whistles added. @interact def int_plot(t1=text_control("Enter data as a list of pairs, and set window [a,b] by [c,d]."), str1 = input_box('[[1975,4123], [1980,3851], [1985,3461], [1990,2827], [1995,2515], [2000, 2092]]',type = str, label='data '), a = (1970), b = (2000), c = (2000), d = (4500) , xlabel= ('Year'), ylabel= ('Consumption')): array1=eval(str1) s=scatter_plot(array1, xmin=a, xmax = b, ymin=c, ymax=d, figsize=6, axes_labels=[str(xlabel),str(ylabel)]) show(s)

2012-03-20 08:05:05 -0600 commented answer how to enter a list of data points in an interact?

That looks like what I need -- thanks. I'll let you know how it works when I adapt it.

2012-03-20 06:15:02 -0600 asked a question how to enter a list of data points in an interact?

I want to enter a default list of (x,y) data for a scatter plot that the user can modify to create a different scatter plot.