Ask Your Question

dasmith88's profile - activity

2022-03-18 05:23:13 +0200 received badge  Popular Question (source)
2019-11-19 02:56:57 +0200 received badge  Notable Question (source)
2018-12-18 12:45:20 +0200 received badge  Taxonomist
2016-11-30 18:28:18 +0200 received badge  Popular Question (source)
2015-07-10 22:09:37 +0200 received badge  Notable Question (source)
2014-06-22 17:18:58 +0200 received badge  Popular Question (source)
2012-06-22 17:12:12 +0200 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 17:08:39 +0200 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 13:56:51 +0200 received badge  Editor (source)
2012-06-22 13:40:52 +0200 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 15:02:03 +0200 received badge  Student (source)
2012-04-11 14:43:01 +0200 asked a question size of input_box

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

2012-03-20 15:15:05 +0200 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 14:05:05 +0200 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 12:15:02 +0200 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.