• Skip to main content
  • Skip to primary sidebar

学習記録

sympy

対数関数(log)

2018年6月22日 by 河副 太智 Leave a Comment

a

1
math.log(math.sqrt(27),3)

b

1
math.log(3/4,3)+4*math.log(3/math.sqrt(2))

 

 

Filed Under: 対数関数(log)

累乗と累乗根

2018年6月11日 by 河副 太智 Leave a Comment

\(4^{4}\times 2^{-1}\div 2^{2}\)

1
2
3
4
#
4**4*2**-1/2**2
 
Out:32

 

\(\sqrt [4] {81}\)

1
2
3
4
#
pow(81, 1/4)
 
OUT:3

 

\(\sqrt [3] {81}\times \sqrt [3] {9}\)

1
2
3
4
#
pow(81,1/3)*pow(9,1/3)
 
out:8.99999999

 

\(\sqrt [3] {\sqrt {64}}\)

1
2
3
4
#
pow(pow(64,1/2),1/3)
 
out:2

 

Filed Under: 累乗根(n乗根)

展開

2018年5月22日 by 河副 太智 Leave a Comment

を展開する場合は

1
sympy.expand(2*b*(x + 2)*(x - 4))

Out:

1
2*b*x**2 - 4*b*x - 16*b

 

Filed Under: sympy, 数学

因数分解

2018年5月22日 by 河副 太智 Leave a Comment

因数分解一問目

 

1
2
3
4
5
import sympy
x,y,z,a,b = sympy.symbols('x,y,z,a,b')
 
A4 = 2*b*x**2-4*b*x-16*b
sympy.factor(A4)

OUT:

1
2*b*(x - 4)*(x + 2)

 

 

因数分解二問目

 

 

1
2
A5 = 5*a*x**2-45*a
sympy.factor(A5)

OUT:

1
5*a*(x - 3)*(x + 3)

Filed Under: sympy, 数学 Tagged With: sympy

Primary Sidebar

カテゴリー

  • AWS
  • Bootstrap
  • Dash
  • Django
  • flask
  • GIT(sourcetree)
  • Plotly/Dash
  • VPS
  • その他tool
  • ブログ
  • プログラミング
    • Bokeh
    • css
    • HoloViews
    • Jupyter
    • Numpy
    • Pandas
    • PosgreSQL
    • Python 基本
    • python3
      • webアプリ
    • python3解説
    • scikit-learn
    • scipy
    • vps
    • Wordpress
    • グラフ
    • コマンド
    • スクレイピング
    • チートシート
    • データクレンジング
    • ブロックチェーン
    • 作成実績
    • 時系列分析
    • 機械学習
      • 分析手法
      • 教師有り
    • 異常値検知
    • 自然言語処理
  • 一太郎
  • 数学
    • sympy
      • 対数関数(log)
      • 累乗根(n乗根)
    • 暗号学

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in