Ask Your Question
0

How can I see the detail of embedded codes?

asked 2022-05-01 18:34:45 +0100

Vibap gravatar image

Hi. I want to learn how to make some efficient codes manually by referring to verified codes with quality like the ones embedded in Sage.

Is there any way that I can see the detail of the embedded codes like 'next_prime()', 'prime_pi(), 'prime_range()?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-02 11:52:40 +0100

tmonteil gravatar image

To get the source code of a Sage function (or method), you can use ?? as follows:

next_prime??
edit flag offensive delete link more

Comments

wow, so easy! This is why SageMath is the best!

Vibap gravatar imageVibap ( 2022-05-02 11:59:17 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-05-01 18:34:45 +0100

Seen: 159 times

Last updated: May 02 '22