Skip to content

Commit d51bc95

Browse files
authored
Update Logic.html
1 parent d24a2d1 commit d51bc95

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Logic.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
const angle = Trig.queryAtan(this.height / this.length);
5050

5151
const circle = new Circle(((this.height ** 2 + this.length ** 2) / this.height));
52-
const area = circle.area(((this.height ** 2 + this.length ** 2) / this.height)) * angle / 90 - ((this.height ** 2 + this.length ** 2) / this.height - this.height) * this.length;
52+
const area = circle.area() * angle / 90 - ((this.height ** 2 + this.length ** 2) / this.height - this.height) * this.length;
5353
document.getElementById('segment-area').innerText = `Segment area: ${area.toFixed(5)} units²`;
5454
}
5555
});
5656
}
5757
}
5858

59-
Circle.fromInput('circle-radius', 'circle-calculatedArea', 'circle-calculatedCircumference', 'segment-calculatedArea');
59+
Circle.fromInput('circle-radius', 'circle-area', 'circle-circumference', 'segment-area');
6060
</script>
61-
<p id="circle-calculatedArea"></p>
62-
<p id="circle-calculatedCircumference"></p>
63-
<p id="segment-calculatedArea"></p>
61+
<p id="circle-area"></p>
62+
<p id="circle-circumference"></p>
63+
<p id="segment-area"></p>

0 commit comments

Comments
 (0)