File: err_163.py

package info (click to toggle)
python-refurb 1.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,700 kB
  • sloc: python: 9,468; makefile: 40; sh: 6
file content (22 lines) | stat: -rw-r--r-- 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import math
from math import e, log

# these should match

_ = math.log(64, 2)
_ = math.log(64, 2.0)
_ = math.log(100, 10)
_ = math.log(100, 10.0)
_ = math.log(100, math.e)
_ = math.log(100, e)
_ = math.log(1 + 2, 2)
_ = log(100, 10)


# these should not

_ = math.log(10, 3)
_ = math.log(64, 1 + 1)

two = 2
_ = math.log(10, two)