Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread Priyanka Kapoor
It looks like you want TeX to do the loop. Try the forloop package: http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/ How to pass value of list in sageblock to variable used in \forloop -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana -- To post to this

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread arshpreet singh
On Mon, May 7, 2012 at 3:12 PM, Priyanka Kapoor anjalicool.kapoor...@gmail.com wrote: It looks like you want TeX to do the loop. Try the forloop package: http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/ How to pass value of list in sageblock to variable used in \forloop may be it

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread Priyanka Kapoor
How to pass value of list in sageblock to variable used in \forloop may be it can help http://mathematics.nsetzer.com/latex/latex_for_loop.html It just tell how to apply forloop. -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana -- To post to this group, send email to

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread arshpreet singh
It just tell how to apply forloop. ok . i am waiting for my sage-code to be compiled.it is taking t long :) after that we solve -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For

[sage-support] Array and Loop in Sagetex

2012-05-03 Thread Priyanka Kapoor
I tried this plot using sage with Latex. \documentclass{article} \title{Curve Tracing by SAGE in \LaTeX} \author{Priyanka Kapoor} \usepackage{sagetex} \begin{document} \maketitle Plot the curve for sin(X) \begin{sageblock} f(x) = sin(x) \end{sageblock} Here's a plot of $f$ from $-2$ to $2$:

Re: [sage-support] Array and Loop in Sagetex

2012-05-03 Thread Dan Drake
On Thu, 03 May 2012 at 04:58PM +0530, Priyanka Kapoor wrote: \begin{sageblock} v= [x^2, sin(x)] \end{sageblock} Here's a plot of $f$ from $-2$ to $2$: for i in range(2): \sageplot[width=10cm]{plot(v[i],(x, -2,2),legend_label='sin(x)',aspect_ratio =1)} \end{document} You are