Te tātaitai porohita
Ka kitea te rohe o te porowhita, te hurihanga me te whakawhitinga mai i tētahi inenga kotahi.
Ka whakahōutia ngā hua i te wā e tātuhi ana.
Mo tēnei tātaitai
a radius of 5, the diameter is 10, the circumference is 2 × π × 5 ≈ 31.42, and the area is π × 25 ≈ 78.54, shown exactly as 25π. For a radius of 5, the diameter is 10, the circumference is 2 × π × 5 ≈ 31.42, and the area is π × 25 ≈ 78.54, shown exactly as 25π. For a radi
Ko nga pātai e pā ana
He aha te tātai mo te hurihanga o te porowhita?
Te hurihanga = 2 × π × radius, ōrite rānei ki te π × diameter. Ko te radius o te 5 e hoatu ana ki tētahi hurihanga tata ki te 31.42.
He pēhea te kimi i te radius mai i te rohe?
Whakahōu anō te rohe = π r² ki te r = √ (rohe ÷ π). Ka mahi tēnei utauta i te wā e kōwhiri ana kia tāuru te rohe.
He aha te rohe o tētahi porohita me te pūwhitiwhiti 5?
Area = π × 5² = π × 25 ≈ 78.54, e whakaaturia ana i te āhua tonu o te 25π.
Ka tīmata rānei au i te whakawhitinga, i te hurihanga rānei?
Hei. Hiko te uara e mōhiotia ana e koe — te pūwhitiwhiti, te whakawhitinga, te hurihanga, te rohe rānei — ā, ka puta mai te tātaitai ki ētahi atu toru.
He aha te wāhi tika e whakaaturia ana hei ×π?
E tuhituhi ana te rohe hei r²π (hei tauira, 25π) kia tika ai te uara, kaua e whakaroa ki te ira.
He aha te pātahitanga i waenganui i te pūwhitiwhiti me te whakawhitiwhiti?
E rua te tawhiti o te pūwhiti, ā, ko te tawhiti te haurua o te tawhiti. Ko te tikanga o te tawhiti o te 5 he tawhiti o te 10.
API — whakamahi tēnei tātaitai mai i te waehere
E kī ana tēnei tātaitai hei wāhi mutunga kore JSON - kāore he kī e hiahiatia ana. Ka tukuna ngā uara āpure i raro nei hei tohutoro pātai, JSON rānei. Ka pānui te papatono API katoa →
Whakamutunga
GET https://calculator.free/api/v1/circle/
curl
curl "https://calculator.free/api/v1/circle/?given=radius&value=5"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/circle/?" + new URLSearchParams({
"given": "radius",
"value": "5"
}));
const data = await r.json();
console.log(data.results);
Ko ngā hua he whakataunga mō te tohutohu ahuwhānui anake, ehara i te tohutohu moni, rongoā, tāke rānei.