import sympy as sp import math import cv2 import numpy as np import matplotlib.pyplot as plt import csv import os import glob import pandas as pd for i in range(48) : Vr = i*0.5 + 0.5 print(Vr) π = math.pi m = 0.0156 Cn = 6.83879 D = 0.016 H = 0.04 L = 0.3 ρ = 1.18 M = (m/(ρ*H*D*L))*(D/H) CL = 0.5 lists = [] for j in range(1, 16384): sp.init_printing() sp.var('t') y = sp.Function('y')(t) #xはtの関数(Function) C = (4*π*Cn)/Vr F = CL/(2*M) eq2 = sp.Eq( sp.diff(y, t ,2)+C*sp.diff(y, t, 1), F ) yre = sp.dsolve(eq2, ics={y.subs(t,0):0}) lists.append(yre) return lists df = lists print(df)
エラー文
lists.append(yre) ^ IndentationError: unexpected indent
上記のようにインデントエラーが出たのですが,どのように直せばよいかいまいちわかりません.
また,dataframeを組んでcsvに出力を考えているのですが,うまく組めているでしょうか?
初歩的な質問で申し訳ございません...
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/07/08 06:01
2021/07/08 06:03
2021/07/08 06:52