Ask Your Question

Iftikhar Burhanuddin's profile - activity

2020-07-22 15:43:05 -0500 received badge  Famous Question (source)
2018-06-17 12:34:31 -0500 received badge  Notable Question (source)
2015-09-24 06:33:55 -0500 received badge  Popular Question (source)
2012-11-26 12:59:40 -0500 asked a question bug in sqrt?

This looks like a bug.

sage: 1/sqrt(10)

On the other hand,

sage: 1/sqrt(9)

works fine.

2012-11-10 17:41:27 -0500 commented question Bug in legend_label of list_plot?

On the other hand, `(X+Y).save('tmp.eps')` displays the legend labels correctly.

2012-11-10 17:37:55 -0500 commented answer Bug in legend_label of list_plot?

How do I circumvent this bug to get the legend labels right?

2012-11-10 16:48:53 -0500 answered a question Creating a polynomial ring where the variables are code generated

Thanks for the answers.

2012-11-10 16:44:35 -0500 asked a question Bug in legend_label of list_plot?

Hi, Suppose lstR and lstS are two lists of real numbers.

X = list_plot(lstR, plotjoined = True, color='black', marker = 'o', linestyle="-", legend_label='$R$', axes_labels=['Trial number', 'Value'])
Y = list_plot(lstS, plotjoined = True, color='black', marker = 's', linestyle="--", legend_label='$S$', axes_labels=['Trial number', 'Value'])      

The legend label for R is two squares joined by a line instead of two circles joined by a line. Is this a bug? (I am unable to upload the plot image because my karma is not > 60.)

2012-11-06 03:31:28 -0500 received badge  Supporter (source)
2012-11-06 02:41:09 -0500 received badge  Editor (source)
2012-11-06 02:14:46 -0500 asked a question Creating a polynomial ring where the variables are code generated

Hi, The standard way to create a multivariate polynomial ring over ZZ is as follows.

sage: R.<x,y> = PolynomialRing(ZZ)

I want to create a polynomial ring over ZZ where the variables are generated by code.

sage: n = 5
sage: lstx = list(var('x_%d' % i) for i in range(n))
sage: lstx
 [x_0, x_1, x_2, x_3, x_4]

My attempts at creating the desired ring whose variables are the elements of lstx result in error. Any help will be appreciated.