Scipy-python Library-math Tool-begin

Source: Internet
Author: User

Introduction

Scientific Computing Tools for Python. Seen in scipy.org.

Environment

Linux, CentOS 7 with KDE, Python 2.7

Installation
1 Install --upgrade pip2sudo for the next command3  Install --user numpy scipy matplotlib ipython jupyter pandas sympy nose45 vim ~/. BASHRC6 # export path= $PATH:/home/leaf/.local/bin
A simple demo to solve a Bessel function

Bessel function:most commonly, the canonical solutions y(x) of the differential equation. Seen in wiki.

Code (Python):

1  fromMatplotlib.pyplotImport*2  fromNumPyImport*3  fromSciPyImportSpecial, optimize4f =LambdaX:-SPECIAL.JV (3, X)5Sol = Optimize.minimize (F, 1.0)6x = Linspace (0, 10, 5000)7 x8Plot (x, SPECIAL.JV (3, X),'-', Sol.x,-sol.fun,'o')9Savefig ('Plot.png', dpi=96)

Result:

Simple case. Just for the beginning of applying Scipy.

Scipy-python Library-math Tool-begin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.