Book3_Elements-of-Mathematics icon indicating copy to clipboard operation
Book3_Elements-of-Mathematics copied to clipboard

Streamlit_Bk3_Ch25_2.py 连续几夜鸡兔转换

Open lgr1230 opened this issue 1 year ago • 0 comments

以鸡兔初始比例一样高为例

pdf

image

保留 3 位小数, 第 8 夜达到平衡

streamlit

image

保留 7 位小数,第 21 夜达到平衡

注: 原代码中 夜数只有20, 无法找到平衡状态,于是将夜数更改为30 image

一边计算, 一边舍入

image image 不一致

计算完成, 整体舍入

image image 一致

其它初始比例情况, 验证皆一致

lgr1230 avatar May 06 '23 12:05 lgr1230