Skip to content

Instantly share code, notes, and snippets.

Fei Yang yfhust

Block or report user

Report or block yfhust

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ImageJ Macro Programs
a = parseFloat(getUserInputValue("请输入土方下底面的长度", 100));
b = parseFloat(getUserInputValue("请输入土方下底面的宽度", 100));
x = parseFloat(getUserInputValue("请输入土方上底面的长度", 100));
y = parseFloat(getUserInputValue("请输入土方上底面的宽度", 100));
h = parseFloat(getUserInputValue("请输入土方的高度", 10));
totalArea = eachArea(a,b,x,y,h)+eachArea(b,a,y,x,h);
print("短梯形的高是: "+sqrt((square((b-y)/2)) + square(h)));
print("长梯形的高是: "+sqrt((square((a-x)/2)) + square(h)));
print("每个短梯形的面积是: "+(eachArea(a,b,x,y,h))/2);
print("每个长梯形的面积是: "+(eachArea(b,a,y,x,h))/2);
You can’t perform that action at this time.