Ask Your Question

Revision history [back]

String Output from Multiple Function Calls

Web page SageMathCell, sagecell dot sagemath dot org slash ?q=bfdjbp - This one opens with particular function/subroutine calls already typed in. Someone supplied it to me in response to a question I posted in Mathematics Stack Exchange. I took it from there, reading up on various function/subroutine calls for SageMath. I am a longtime mainframe programmer (COBOL mainly), but I did get some exposure to object-oriented programming (but not in Python) before my retirement. Please excuse me if I have misused the terms subroutine and function here.

The code I was supplied is:

E = EllipticCurve([0,0,0,-3,34])

E.integral_points()

I learned about the rank() call and wanted to add it:

E.rank()

However, only the second one displays. I comment-out (using "#", which I was able to learn about through Googling) the line I don't use. But what I'd really like to do is to display both E.integral_points() and E.rank() at the same time.

Using pseudocode, what some of my earlier programming experience would have me do is something like this:

E.integral_points() + E.rank()

or maybe:

String(E.integral_points(), E.rank())

If you understand what I am trying to do, please let me know how to do it. Or if it can't be done, please let me know. Thanks in advance for any emoticon-free, emoji-free response you can give me.