Coca-Cola Bottle Volume Calculation

Coca-Cola Bottle Volume Calculation
Loading the math board and drawing, please wait…
2019-12-02 05:04
This example demonstrates how to calculate the volume of a Coca-Cola bottle by stacking cylinders, involving integral calculus, functions, and optimization problems. It uses GeoGebra commands like Point, Line, Function, OrthogonalLine, Intersect, Segment, Distance, Sequence, Sum, and DynamicCoordinates for construction. Suitable for high school and above students to understand volume integration and function modeling, ideal for teaching demonstrations or problem-solving exercises.

GeoGebra Commands & Parameters

  1. Point(xAxis) → A
  2. Point(xAxis) → C
  3. Line(A, C) → f
  4. Function({-1.0253991519168804, 3.4791279224290643, 0.2534243350180235, 0.25978666139421835, 0.2661489877704131, 0.27251131414660795, 0.27569247733470537, 0.2788736405228028, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.27569247733470537, 0.26933015095851054, 0.2629678245823157, 0.2597866613942183, 0.25660549820612094, 0.2534243350180235, 0.25660549820612094, 0.2597866613942183, 0.2629678245823157, 0.26933015095851054, 0.27569247733470537, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.27569247733470537, 0.26933015095851054, 0.2629678245823157, 0.2597866613942183, 0.25660549820612094, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.2534243350180235, 0.25660549820612094, 0.2597866613942183, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2629678245823157, 0.2661489877704131, 0.26933015095851054, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27251131414660795, 0.27569247733470537, 0.2788736405228028, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2820548037109002, 0.2852359668989976, 0.288417130087095, 0.29159829327519243, 0.29477945646328985, 0.29796061965138726, 0.3011417828394847, 0.3043229460275821, 0.30750410921567944, 0.31068527240377686, 0.3170475987799717, 0.3234099251561665, 0.32977225153236134, 0.33295341472045875, 0.3361345779085562, 0.3393157410966536, 0.3456780674728484, 0.35204039384904323, 0.35840272022523806, 0.3615838834133354, 0.3647650466014329, 0.36794620978953024, 0.37112737297762766, 0.37430853616572507, 0.3774896993538225, 0.3806708625419199, 0.3838520257300173, 0.3870331889181147, 0.39339551529430955, 0.3997578416705044, 0.4061201680466992, 0.4093013312347966, 0.412482494422894, 0.4156636576109914, 0.41884482079908886, 0.4220259839871862, 0.42520714717528363, 0.42838831036338104, 0.4315694735514784, 0.43475063673957587, 0.4379317999276733, 0.4411129631157707, 0.4442941263038681, 0.45065645268006294, 0.4570187790562577, 0.46338110543245253, 0.46656226862054995, 0.46974343180864736, 0.4729245949967448, 0.4792869213729396, 0.48564924774913437, 0.49201157412532925, 0.4951927373134266, 0.498373900501524, 0.5015550636896214, 0.5079173900658163, 0.5142797164420111, 0.5206420428182059, 0.5238232060063034, 0.5270043691944007, 0.5301855323824982, 0.5333666955705957, 0.536547858758693, 0.5397290219467904, 0.5429101851348878, 0.5460913483229852, 0.5492725115110826, 0.55245367469918, 0.5556348378872774, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.55245367469918, 0.5460913483229852, 0.5397290219467904, 0.536547858758693, 0.5333666955705957, 0.5301855323824982, 0.5270043691944007, 0.5238232060063034, 0.5206420428182059, 0.5174608796301086, 0.5142797164420111, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5110985532539137, 0.5142797164420111, 0.5174608796301086, 0.5206420428182059, 0.5206420428182059, 0.5206420428182059, 0.5206420428182059, 0.5206420428182059, 0.5238232060063034, 0.5270043691944007, 0.5301855323824982, 0.5301855323824982, 0.5301855323824982, 0.5301855323824982, 0.5301855323824982, 0.5333666955705957, 0.536547858758693, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5397290219467904, 0.5429101851348878, 0.5460913483229852, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.55245367469918, 0.5556348378872774, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5588160010753749, 0.5619971642634723, 0.5651783274515697, 0.5683594906396671, 0.5683594906396671, 0.5683594906396671, 0.5683594906396671, 0.5683594906396671, 0.5715406538277645, 0.5747218170158619, 0.5779029802039594, 0.5779029802039594, 0.5779029802039594, 0.5779029802039594, 0.5779029802039594, 0.5802888525950325, 0.5826747249861055, 0.5850605973771785, 0.5874464697682515, 0.590627632956349, 0.5938087961444464, 0.5969899593325437, 0.6033522857087386, 0.6097146120849334, 0.6160769384611282, 0.622439264837323, 0.6288015912135179, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6319827544016153, 0.6288015912135179, 0.6256204280254205, 0.622439264837323, 0.6192581016492257, 0.6160769384611282, 0.6097146120849334, 0.6033522857087386, 0.5969899593325437, 0.5938087961444464, 0.590627632956349, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.590627632956349, 0.5938087961444464, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5969899593325437, 0.5938087961444464, 0.590627632956349, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5874464697682515, 0.5842653065801541, 0.5810841433920567, 0.5779029802039594, 0.5779029802039594, 0.5779029802039594, 0.5779029802039594, 0.5779029802039594, 0.5747218170158619, 0.5715406538277645, 0.5683594906396671, 0.5683594906396671, 0.5683594906396671, 0.5683594906396671, 0.5683594906396671, 0.5651783274515697, 0.5619971642634723, 0.5588160010753749, 0.5556348378872774, 0.55245367469918, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.5492725115110826, 0.55245367469918, 0.5556348378872774, 0.5588160010753749, 0.5651783274515697, 0.5715406538277645, 0.5779029802039594, 0.5842653065801541, 0.590627632956349, 0.5969899593325437, 0.6001711225206412, 0.6033522857087386, 0.606533448896836, 0.6128957752730309, 0.6192581016492257, 0.6256204280254205, 0.6319827544016153, 0.63834508077781, 0.6447074071540049, 0.6478885703421023, 0.6510697335301997, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6542508967182972, 0.6510697335301997, 0.6478885703421023, 0.6447074071540049, 0.6447074071540049, 0.6447074071540049, 0.6447074071540049, 0.6447074071540049, 0.6415262439659074, 0.63834508077781, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6351639175897127, 0.6319827544016153, 0.6288015912135179, 0.6256204280254205, 0.6256204280254205, 0.6256204280254205, 0.6256204280254205, 0.6256204280254205, 0.622439264837323, 0.6192581016492257, 0.6160769384611282, 0.5969899593325437}) → g
  5. Point(g) → L
  6. Point(g) → M
  7. OrthogonalLine(L, f) → h
  8. OrthogonalLine(M, f) → i
  9. Intersect(f, h) → N
  10. Intersect(f, i) → O
  11. Segment(N, O) → j
  12. Distance(N, O) → a
  13. Sequence((x(N) + (b * i), 0), i, 0, n) → L_1
  14. Sequence((x(N) + (b * i), g(x(N) + (b * i))), i, 0, n) → L_2
  15. Sequence(Cylinder[Element[L_1, i], Element[L_1, i + 1], Distance[Element[L_1, i], Element[L_2, i]]], i, 1, n) → L_3
  16. Sum(L_3) → c
  17. DynamicCoordinates(P, n, c) → Q
  18. OrthogonalLine(Q, yAxis) → k
  19. Intersect(k, yAxis) → R

AI Drawing Prompt Reference

Draw a shape simulating a Coca-Cola bottle by stacking cylinders to illustrate volume calculation. Start with a horizontal line as the base, then create an irregular function on this line to mimic the bottle's cross-sectional profile. Generate multiple points from the function and use them to construct vertical line segments, representing the heights of the cylinders. Calculate the distances between adjacent segments as the radii of the cylinders and draw them accordingly. Finally, sum the volumes of these cylinders and label the total volume with dynamic coordinates.
The prompt above was compiled from the original drawing commands and is for reference only.