Ask Your Question

Shreya's profile - activity

2022-04-16 00:53:55 +0200 received badge  Popular Question (source)
2020-04-13 19:29:52 +0200 received badge  Editor (source)
2020-04-13 19:27:52 +0200 asked a question Keep getting ?? as output instead of the desried sage output in sageexample

Hi!

So a total beginner in sage here so please try to refrain from suggesting too technical things here.

I'm trying to have some sage code results show in my tex file. After reading some parts of sage tutorial in example.pdf, I made another small tex file with

\documentclass{article}

\usepackage{sagetex} \begin{document} \begin{sageexample} sage : E = EllipticCurve([0,3]) sage : E.discriminant() \end{sageexample} \end{document}

Ran this tex file, then associated example.sagetex.sage file in terminal, then ran tex file again but all I keep getting is ?? Instead of the desired output.

What am I missing or doing wrong?

The first eror latex suggested is - Reference '@sageinline0' on page 1 undefined on input line 6.

Package sagetex warning: there were undefined Sage formulas and/or plots. Run Sage on example.sagetex.sage, and then run LaTeX on example.tex again.

But what should I do?

Thanks you.

Edit: Sorry for not embedding the minimal working example right, I'm on mobile and new to this site so don't know exactly how to do that yet. Would appreciate pointers on that as well if possible.

2020-04-13 19:16:24 +0200 commented question How to show sage code results in LaTeX file and do other computations?

Doesn't help, sorry! I'm a total noob to this whole sage world. I read some parts of sage tutorial in example.pdf but all I get ?? instead of the sage code output. It's frustrating.

2020-04-13 17:21:10 +0200 commented question How to show sage code results in LaTeX file and do other computations?

And how do I build this .sage file? In terminal?

2020-04-13 12:49:54 +0200 asked a question How to show sage code results in LaTeX file and do other computations?

Hi!

I am new to Sage (just installed it a few days ago) so I apologise if this question is too basic for this site. But since I'm really stuck and have no other platform to get help, I'll go ahead with my query anyway.

  1. am writing a LaTeX document (on elliptic curves) and I wanted to do some related computations. Now I know how to embed the sage code in Latex file (you use sageblock) but I also want to show the results of those codes (like listing torsion points automatically as sage code output, the way we see it) in my LaTeX file. How do I do this?
  2. Next, I saw someone's thesis here: 1812.10415 (can't post links yet, but googling this number gives that pdf) (page 68). They have shown the results of two descent like, computed the bounds on the ranks of quotients $E'(\mathbb{Q})/\phi(E(\mathbb{Q})$, $E(\mathbb{Q})/2E(\mathbb{Q})$, etc. and I couldn't find the codes to do the same in the Sage manual: Elliptic Curves on Rational Numbers. They have not only shown what sage codes they typed (which I didn't understand) but have also embedded their results in their latex file. How do I go on about doing the same?

I would really appreciate any kind of useful comments or answers.

Thank you.

Edit: my system is Ubuntu 14.04 and I use sage either in terminal or jypyter notebook.