Ask Your Question

Iftikhar Burhanuddin's profile - activity

2021-09-19 23:55:26 +0100 received badge  Popular Question (source)
2020-07-22 22:43:05 +0100 received badge  Famous Question (source)
2018-06-17 19:34:31 +0100 received badge  Notable Question (source)
2015-09-24 13:33:55 +0100 received badge  Popular Question (source)
2012-11-26 19:59:40 +0100 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-11 00:41:27 +0100 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-11 00:37:55 +0100 commented answer Bug in legend_label of list_plot?

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

2012-11-10 23:48:53 +0100 answered a question Creating a polynomial ring where the variables are code generated

Thanks for the answers.

2012-11-10 23:44:35 +0100 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 10:31:28 +0100 received badge  Supporter (source)
2012-11-06 09:41:09 +0100 received badge  Editor (source)
2012-11-06 09:14:46 +0100 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.