Ask Your Question
0

How can I see the detail of embedded codes?

asked 2 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

tmonteil gravatar image

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

next_prime??
Preview: (hide)
link

Comments

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

Vibap gravatar imageVibap ( 2 years ago )

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: 2 years ago

Seen: 192 times

Last updated: May 02 '22