-
Numbershark gets an update of optimal values
See https://oeis.org/A019312
-
The main motivation to use sinc function is its nice and smooth behavior around zero. However, the current implementation can produce results greater than 1 close to zero, and the results are not even…
-
做了些改动:
1. 用 f-string 改写输出
2. 用 enumerate 替代 range(len())
3. 把主函数写入了 main() 里,方便调用,顺便加了 doctest
> 对照过 https://oeis.org/A140606 ,前 5 项都对,应该没改错。n=6 出的速度有点慢,放弃。
```py
# -*- coding: utf-8 -*-
…
-
https://oeis.org/A000008
Current solution is failing tests:
```
--- FAIL: TestA000008Next (0.00s)
a000008_test.go:32: x should be 1, got 3
a000008_test.go:32: x should be 2, got 9
…
-
With 9.1.beta5:
```
sage -t --optional=sage,internet src/sage/combinat/tutorial.py
```
```
**********************************************************************
File "src/sage/combinat/tutorial.p…
-
I'm working on a little arbitrary precision library as a hobby project and implemented natural log calculations. I decided to verify the results against decimal.js, since I'm pretty confident decimal.…
-
Tracking issue for the `TAU` constant added in #66769.
---
Before stabilization:
- [x] Confirm that the numeric values we have are accurate.
- [x] Decide whether we are comfortable using the…
-
Context: http://127.0.0.1:3999/moretypes/26
Fibonacci sequence does not start at '0'. It starts at '1'. The instructions show that the fibonacci sequence appears as (0, 1, 1, 2, 3, 5, ...).
T…
-
Similar issue here (but the problem is not language specific): #262
Whenever there is a ordered or unordered list, the wtf parser removes the list (in case of no container section) OR moves the lis…
-
比赛ABC,赛后DE。排名4025。
> 我是傻逼。
## [A - Filling Diamonds][1]
[Code][2]
题意:
给定一个钻石状图形,让你用小四边形(n=1)进行填充。问有多少种不重复的填充方案。
![][11]
解法:
根据思考可得,只要确定了直立小四边形的位置,其它小四边形的位置就已经确定了。
所以对于任意图形,有且仅有n个直…