As well as being able to type simple equations into the numeric edit field using operators such as + - * / I’ve just discovered that you can also enter trig functions (and no-doubt other mathematical functions) like Tan etc.
So in the example I gave above you can actually enter “/tan(45/2)” after the width or height values (either the actual size value or % fields).
After hitting “Enter”: