Wheelbase:
Rear Center:
Bottom Bracket Drop:
Calculate Front Center
function calculate() {
// Get input values
var A = parseFloat(document.getElementById(‘inputA’).value);
var B = parseFloat(document.getElementById(‘inputB’).value);
var C = parseFloat(document.getElementById(‘inputC’).value);
// Perform the calculation
var D = Math.sqrt(Math.pow((A – Math.sqrt(Math.pow(B, 2) – Math.pow(C, 2))), 2) + Math.pow(C, 2));
// Display the result
document.getElementById(‘result’).innerHTML = ‘Result: ‘ + D.toFixed(2);
}
Front Center: