2026年8月発売の「Python数値計算プログラミング 改訂第2版」(講談社)サポートページです。
本書で解説している全てのPytnonスクリプトを公開しています。本文のミスなどはここに書き足しておくようにします。
- 2026-09-29 (Tue) Chapter00のスクリプトアップロード忘れてましたので慌ててアップ。
- 2026-08-21 (Fri) 第2版に合わせてスクリプトを一部差し換え・書き換え。
- 2023-06-12 (Mon) SciPyからrandom.rand関数が削除されたことに伴い,NumPyのrandom.rand関数に書き換えた。
- chapter00/script01.py
- chapter00/script02.py
- chapter00/script03.py
- chapter00/script04.py
- chapter00/script05.py
- chapter00/script06.py
- chapter00/util.py
- chapter03/hellow.py
- chapter03/variable.py
- chapter03/print_format.py
- chapter03/float_sys.py
- chapter03/input_print.py
- chapter03/float_calc.py
- chapter03/complex_calc.py
- chapter03/complex_func.py
- chapter03/np_calc.py
- chapter03/np_sc_calc.py
- chapter03/tktools.py
- chapter03/logistic_function.py
- chapter03/np_float_types.py
- chapter03/np_float_cast.py
- chapter03/myname_print.py
- chapter03/quadratic_eq.py
- chapter03/quadratic_eq_c.py
- chapter03/quadratic_eq_np.py
- chapter03/relerr.py
- chapter03/quadratic_eq_mod.py
- chapter03/quadratic_eq_c2.py
- chapter03/sum_3cubes.py
- chapter04/rmode.py
- chapter04/fpcr_round_aarch64.c Arm Linux用の丸めモード操作関数(rmode.pyで利用)
- chapter04/logistic_function_rmode.py
- chapter04/logistic_function_interval.py
- chapter04/logistic_function_mpmath.py
- chapter04/logistic_function_gmpy2.py
- chapter04/bench_matmul_mpmath.py
- chapter04/quadratic_eq_rmode.py
- chapter04/quadratic_eq_interval.py
- chapter04/quadratic_eq_mpmath.py
- chapter04/quadratic_eq_gmpy2.py
- chapter05/horner.py
- chapter05/newton_sqrt.py
- chapter05/maclaurin_e.py
- chapter05/maclaurin_exp.py
- chapter05/maclaurin_sin.py
- chapter05/maclaurin_exp2.py
- chapter05/maclaurin_log.py
- chapter05/tktools.py
- chapter05/newton_cbrt.py 演習問題1
- chapter05/hyperbolic_sincos.py 演習問題2
- chapter05/complex_exp.py 演習問題3
- chapter06/zero_matvec.py
- chapter06/first_ndarray.py
- chapter06/basic_matrix.py
- chapter06/basic_linear.py ベクトルノルム・行列ノルム
- chapter06/relerr_norm.py
- chapter06/bench_matmul.py
- chapter06/bench_matmul_complex.py
- chapter06/relerr_norm_complete.py
- chapter06/bench_mymatmul.py 演習問題2の自作行列乗算
- chapter07/lu.py
- chapter07/inv.py 逆行列の計算
- chapter07/linear_eq.py
- chapter07/linear_eq_cholesky.py
- chapter07/linear_eq_cond_hilbert.py
- chapter07/lu2.py
- chapter07/linear_eq_cholesky2.py
- chapter08/sparse_format.py
- chapter08/sparse_matrix_lu.py
- chapter08/jacobi_iteration_sparse.py
- chapter08/cg_mpmath.py
- chapter08/bicgstab_sample.py
- chapter08/sparse_format_detail.py
- chapter09/eig.py
- chapter09/power_eig.py
- chapter09/qr.py
- chapter09/hessenberg.py
- chapter09/eig2.py
- chapter09/power_eig_pro1.py 演習問題1の解答
- chapter11/interpol.py
- chapter11/neville.py
- chapter11/least_square_fit.py
- chapter11/test_least_sq.csv
- chapter11/spline.py
- chapter11/tktools.py
- chapter12/num_deriv.py
- chapter12/deriv.py
- chapter12/auto_diff.py
- chapter12/integration_scipy.py
- chapter12/integration_simple.py
- chapter12/deriv2.py
- chapter12/auto_diff2.py
- chapter12/integration_simple2.py
- chapter12/num_deriv2.py 演習問題1の解答
- chapter12/tktools.py