![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/640378716956179.jpg "
Undefined fumction elg for input argunments of type ' double. 意思是积分函数的变量类型未定义为“double”输入参数不能重新把a定义为数组变量,积分只能对变量积分,而不能对数值积分,或者a的变量类型与函数输入参数类型不符,看看类型有没有错