zoukankan      html  css  js  c++  java
  • 003 Scipy库简介

    参考文档补充原本的文档:

      https://www.cnblogs.com/mrchige/p/6504324.html

    一:原本的简单介绍

    1.Scipy库

      Scipy库是基于python生态的一款开源数值计算,科学与工程应用的开源软件,包括常用的NumPy,pandas,matplotlib等库。

      https://www.scipy.org/:

      

    2.介绍

      SciPy是一款方便、易于使用、专为科学和工程设计的Python工具包.它包括统计,优化,整合,线性代数模块,傅里叶变换,信号和图像处理,常微分方程求解器等等.

      SciPy科学计算工具集,而不是完整的包含NumPy、Matplotlib的SciPy技术栈。

      Scipy库构建于NumPy之上,提供了一个用于在Python中进行科学计算的工具集,如数值计算的算法和一些功能函数,可以方便的处理数据。主要包含以下内容

    二:实验Scipy(主要来源于文档)

    1.环境

      使用Spyder

      

    2.特定函数

     1 # -*- coding: utf-8 -*-
     2 from numpy import *
     3 from scipy import *
     4 
     5 from scipy.special import jn, yn, jn_zeros, yn_zeros
     6 import matplotlib.pyplot as plt
     7 
     8 n = 0    # order
     9 x = 0.0
    10 
    11 # Bessel function of first kind
    12 print "J_%d(%f) = %f" % (n, x, jn(n, x))
    13 
    14 x = 1.0
    15 # Bessel function of second kind
    16 print "Y_%d(%f) = %f" % (n, x, yn(n, x))
    17 
    18 x = linspace(0, 10, 100)
    19 
    20 fig, ax = plt.subplots()
    21 
    22 for n in range(4):
    23     ax.plot(x, jn(n, x), label=r"$J_%d(x)$" % n)
    24 ax.legend();
    25 
    26 fig

    3.效果

      

  • 相关阅读:
    JS中const的使用
    JS的作用域,闭包的理解
    python中函数的默认参数是空数组
    asp.net 导出 Excel
    asp.net 导出 Excel 身份证格式显示格式问题
    HTML5
    JQuery中checkbox选择器
    JQuery中DOM操作(一)
    PL/SQL 创建用户及权限操作
    PL/SQL 表约束
  • 原文地址:https://www.cnblogs.com/juncaoit/p/7733081.html
Copyright © 2011-2022 走看看