pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.73k stars 133 forks source link

Square root #238

Closed StefanoBalocco closed 4 months ago

StefanoBalocco commented 5 months ago

Hello! Would be very useful, in the math node, a square root function.

For example if I want to calculate the width for a specific ratio and pixel count(1920x1080, in the example), I need to calculate: sqrt(ratio.width(19201080)/ratio.height)

Is possible to implement that function?

Thanks!

pythongosssss commented 4 months ago

Added sqrt!