I am getting an IndexError, and not sure why? My goal is to calculate the Following integral.
the mathematical expression in attached file
the mathematical expression in attached file
%reset -f
import numpy as np
from scipy import io, integrate, linalg, signal
from scipy.sparse.linalg import cg, eigs
import sympy as sp
import math
from math import *
from sympy import *
# Define symbols
z = sp.symbols('z')
lh = 10.
L = 1.
h = L / lh
p = 10.
V = ((1. / 2.) + (z / h))**p
Ec = 380.
vc = 0.23
Em = 70.
vm = 0.23
# Effective properties of the CNTRC
Ez = Em + (Ec - Em) * V
fz=z;
fz1=diff(fz,z);
Q11=Ez;
Q55=Ez/(2*(1+vm));
B11=sp.integrate(Q11*z,(z,-h/2,h/2));Error:TypeError: 'Float' object cannot be interpreted as an integeryour help is appreciated
Attached Files
