@@ -3206,104 +3206,6 @@ <h3 itemprop="name" style="margin:7px">Surface Area of a Cone</h3>
32063206</ div >
32073207</ section >
32083208< br > < br > < br >
3209- < section itemprop ="mathExpression " itemscope itemtype ="https://schema.org/SolveMathAction " id ="cap ">
3210- < meta itemprop ="eduQuestionType " content ="Spherical cap volume calculation ">
3211- < meta itemprop ="target " content ="https://basic-geometry.github.io?q={spherical_cap_radius=2_height=1_volume=?} ">
3212- < h3 itemprop ="name " style ="margin:7px "> Volume of a Spherical Cap</ h3 >
3213- < br >
3214- < figure itemprop ="image " class ="imgbox " itemscope itemtype ="https://schema.org/ImageObject ">
3215- < img class ="center-fit " src ="sphericalCap.png " alt ="One dimension of the volume of sphere formula can be adjusted to calculate the volume of a spherical cap as a distorted hemisphere. V = 1.6 × (cap radius) × h × 4 / √5² ">
3216- </ figure >
3217- < br >
3218- < div style ="margin:12px " itemprop ="result " itemscope itemtype ="https://schema.org/PropertyValue ">
3219- < p itemprop ="description "> One dimension of the volume of sphere formula can be adjusted to approximate the volume of a spherical cap as a distorted hemisphere.</ p >
3220- < br > < br >
3221- < span itemprop ="name "> V< sub > (cap)</ sub > </ span > =
3222- < meta itemprop ="value " content ="1.6 × radius^2 × height × 4 / 5^(1/2) ">
3223- < math xmlns ="http://www.w3.org/1998/Math/MathML ">
3224- < mrow >
3225- < mn > 1.6</ mn >
3226- < mo > ×</ mo >
3227- < msup >
3228- < mrow >
3229- < msub >
3230- < mi > r</ mi >
3231- < mi > (cap)</ mi >
3232- </ msub >
3233- </ mrow >
3234- < mn > 2</ mn >
3235- </ msup >
3236- < mo > ×</ mo >
3237- < msqrt >
3238- < mn > 3.2</ mn >
3239- </ msqrt >
3240- < mo > ×</ mo >
3241- < mi > h</ mi >
3242- </ mrow >
3243- </ math >
3244- </ div >
3245- < br > < br >
3246- < div itemprop ="subjectOf " itemscope itemtype ="https://schema.org/SoftwareApplication " style ="margin:12px " id ="spherical_cap_volume_calculator ">
3247- < meta itemprop ="name " content ="Spherical cap volume calculator ">
3248- < meta itemprop ="accessMode " content ="mathOnVisual ">
3249- < meta itemprop ="accessibilityControl " content ="fullKeyboardControl ">
3250- < meta itemprop ="accessibilityHazard " content ="none ">
3251- < meta itemprop ="accessibilitySummary " content ="Enter numbers and read results ">
3252- < meta itemprop ="applicationCategory " content ="Geometric Calculator ">
3253- < meta itemprop ="description " content ="Calculates the volume of a sphere as (4×radius/5^(1/2))^3. ">
3254- < meta itemprop ="disambiguatingDescription " content ="Does not calculate the volume of a sphere as 4/3×radius^3×3.14... ">
3255- < meta itemprop ="featureList " content ="Calculates the approximate volume of a spherical cap from its radius and height. ">
3256- < meta itemprop ="inLanguage " content ="en ">
3257- < meta itemprop ="interactivityType " content ="Interactive ">
3258- < meta itemprop ="isAccessibleForFree " content ="true ">
3259- < meta itemprop ="isFamilyFriendly " content ="true ">
3260- < meta itemprop ="operatingSystem " content ="Web ">
3261- < meta itemprop ="url " content ="https://basic-geometry.github.io#spherical_cap_volume_calculator ">
3262- < meta itemprop ="usageInfo " content ="Enter the radius and the height. ">
3263- < label for ="cap-radius "> Radius:</ label >
3264- < input id ="cap-radius " type ="number " value ="1 " step ="any ">
3265- < br >
3266- < label for ="cap-height "> Height:</ label >
3267- < input id ="cap-height " type ="number " value ="1 " step ="any ">
3268- < br > < br >
3269- < p id ="cap-volume "> </ p >
3270- < script type ="module " async >
3271- function capVolume ( radius , height ) {
3272- return 1.6 * radius * radius * height * Math . sqrt ( 3.2 ) ;
3273- }
3274-
3275- function updateCapVolume ( ) {
3276- const radius = parseFloat ( document . getElementById ( 'cap-radius' ) . value ) ;
3277- const height = parseFloat ( document . getElementById ( 'cap-height' ) . value ) ;
3278-
3279- if ( isNaN ( radius ) || isNaN ( height ) ) {
3280- document . getElementById ( 'cap-volume' ) . innerText = '' ;
3281- return ;
3282- }
3283-
3284- // Cap validity check
3285-
3286- if ( height > radius ) {
3287- document . getElementById ( 'cap-volume' ) . innerText = 'The height must be shorter than the radius.' ;
3288- return ;
3289- }
3290-
3291- if ( height === radius ) {
3292- document . getElementById ( 'cap-volume' ) . innerText =
3293- `Volume of hemisphere = ${ capVolume ( radius , height ) . toFixed ( 5 ) } cubic units` ;
3294- return ;
3295- }
3296-
3297- document . getElementById ( 'cap-volume' ) . innerText =
3298- `Volume ~ ${ capVolume ( radius , height ) . toFixed ( 5 ) } cubic units` ;
3299- }
3300-
3301- document . getElementById ( 'cap-radius' ) . addEventListener ( 'input' , updateCapVolume ) ;
3302- document . getElementById ( 'cap-height' ) . addEventListener ( 'input' , updateCapVolume ) ;
3303- </ script >
3304- </ div >
3305- </ section >
3306- < br > < br > < br >
33073209< section itemprop ="mathExpression " itemscope itemtype ="https://schema.org/SolveMathAction " id ="pyramid ">
33083210< meta itemprop ="eduQuestionType " content ="Pyramid volume calculation ">
33093211< meta itemprop ="target " content ="https://basic-geometry.github.io?q={pyramid_bottom_edge_number=5_length=3_height=2_volume=?} ">
0 commit comments