Skip to content

Commit

Permalink
comment out cylinder and rectangular prism. (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
TienChih authored Dec 16, 2024
1 parent 9d9986a commit 3409e47
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions source/calculus/exercises/outcomes/AI/AI5/generator.sage
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@ class Generator(BaseGenerator):

d(h)=randint(10, 30)/20*h+randint(1,5)

scenario=randint(0,3)
scenario=randint(0,1)

if scenario==0:
solid="rectangular prism"
base="sqaure"
measuretype="side length"
b=randint(5,10)
height=randint(1,5)*5
A(h)=b^2
#if scenario==0:
# solid="rectangular prism"
# base="sqaure"
# measuretype="side length"
# b=randint(5,10)
# height=randint(1,5)*5
# A(h)=b^2


if scenario==1:
solid="cylinder"
base="circular"
measuretype="radius"
b=randint(2,6)
height=randint(1,5)*5
A(h)=pi*b^2
#if scenario==1:
# solid="cylinder"
# base="circular"
# measuretype="radius"
# b=randint(2,6)
# height=randint(1,5)*5
# A(h)=pi*b^2

if scenario==2:
if scenario==0:
solid="pyramid"
base="square"
measuretype="side length"
b=randint(5,10)
height=randint(1,5)*5
A(h)=(b*(1-h/height))^2

if scenario==3:
if scenario==1:
solid="cone"
base="circular"
measuretype="radius"
Expand Down

0 comments on commit 3409e47

Please sign in to comment.