thrownewError("The trapezoid can't have both bases be zero-length.");
}
if(a===b){
return(a+b)/2*h*t/a;
}
return(-a+Math.sqrt(a*a+(b*b-a*a)*t))*h/(b-a);
}
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.