Skip to content

Demo estimate pi#141

Merged
yihui merged 14 commits intoyihui:mainfrom
chuxinyuan:demo-estimate-pi
Aug 26, 2025
Merged

Demo estimate pi#141
yihui merged 14 commits intoyihui:mainfrom
chuxinyuan:demo-estimate-pi

Conversation

@chuxinyuan
Copy link
Copy Markdown
Contributor

Add a new demo for estimate pi

Add a demo for estimate pi
Fixed the issue where the circle was flattened due to the title
@yulijia
Copy link
Copy Markdown
Collaborator

yulijia commented Jul 9, 2025

Hi @yihui,

I guess you might be on summer holiday, but may I ask, should we approve this merge?
I ran the demo successfully.
I think it would be better to show not only the total number of points but also the number of points inside the circle.

@chuxinyuan
Copy link
Copy Markdown
Contributor Author

Hi @yulijia, It's a good idea to add the information "the number of points inside the circle". I have added relevant information to the output message, but I haven't added such information to the animation for the time being because there isn't enough space.

Thank you for your suggestions for improvement!

@chuxinyuan
Copy link
Copy Markdown
Contributor Author

@yulijia 麻烦您再看看修改后的效果是否合意?如有不妥之处,不吝赐教,我继续完善。

Copy link
Copy Markdown
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢,我改写了一下。

Comment thread demo/estimate_pi.R Outdated
Comment thread demo/estimate_pi.R Outdated
Comment thread demo/estimate_pi.R Outdated
Copy link
Copy Markdown
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢,我改写了一下。

pi_est -> pi_hat
Comment thread demo/estimate_pi.R Outdated
@yihui yihui merged commit 4865532 into yihui:main Aug 26, 2025
@chuxinyuan chuxinyuan deleted the demo-estimate-pi branch August 26, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants