lukew3 / mathgenerator

A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
https://lukew3.github.io/mathgenerator
MIT License
681 stars 176 forks source link

the implement of surface_area_pyramid is wrong #441

Open iamsk opened 5 months ago

iamsk commented 5 months ago

Bug Description

height, half_width, triangle_height_1 = random.sample(random.choice(_PYTHAGOREAN), 3)

triangle_height_1 and triangle_height_2 should be calculated by height, not random generated.

shraf commented 4 months ago

assign this to me please

shraf commented 4 months ago

fixed in #443 @iamsk @lukew3