dylancao

  最近用到了python的数字信号处理,发现很多以前学的都忘掉了,这里做个笔记

# -*- coding: utf-8 -*-
#计算乘方
print pow(3,4)

#计算平方
import numpy as np
print np.square(4)

#计算平方根
print np.sqrt(16)
print pow(25,0.5)

  运算结果:

81
16
4.0
5.0

 

分类:

技术点:

相关文章:

  • 2021-05-04
  • 2022-12-23
  • 2021-11-02
  • 2021-09-23
  • 2022-12-23
  • 2022-01-23
  • 2021-07-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案