Ask Your Question
0

How can I see the detail of embedded codes?

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

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 +0200

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 +0200 )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 +0200

Seen: 106 times

Last updated: May 02 '22