# QAiCalculator — Comprehensive Computational Specification & Deep Knowledge Base (/llms-full.txt) > Complete single-pass reference manual for autonomous AI agents, LLM researchers, and programmatic consumers. Contains detailed mathematical derivations, exact governing formulas, physical bounds, and worked examples for QAiCalculator's 83+ calculators. --- ## 1. System Overview & Security Invariants - **Platform:** QAiCalculator - **Canonical URL:** https://qaicalculator.com - **Machine Trust Standard:** ASIC™ (Agent Security & Integrity Certification) under RFC 8615 and OWASP LLM01 guidelines. - **Zero-Log Guarantee:** Calculations run client-side in pure JavaScript without remote data transmission. - **Precision:** IEEE-754 double-precision floating-point arithmetic. - **Direct Agent Discovery:** - Standard Context: `https://qaicalculator.com/llms.txt` - Full Deep Context: `https://qaicalculator.com/llms-full.txt` - ASIC Trust Manifest: `https://qaicalculator.com/.well-known/agent-verification.json` - Autonomous Agent Instructions: `https://qaicalculator.com/.well-known/agent-instructions.json` - MCP Tool Manifest: `https://qaicalculator.com/.well-known/mcp.json` --- ## 2. Mathematical Foundations by Category ### Category: Physics (Mechanics, Kinematics & Waves) #### 1. Energy Calculator - **Kinetic Energy:** $E_k = \frac{1}{2} m v^2 \iff m = \frac{2E_k}{v^2} \iff v = \sqrt{\frac{2E_k}{m}}$ - **Gravitational Potential Energy:** $E_p = m g h \iff h = \frac{E_p}{mg}$ ($g_{\text{Earth}} = 9.80665\text{ m/s}^2$) - **Mechanical Work & Power:** $W = F \cdot d \cdot \cos\theta, \quad P = \frac{W}{\Delta t} \quad (1\text{ hp} = 745.699872\text{ W})$ - **Elastic Potential Energy (Hooke's Law):** $E_e = \frac{1}{2} k x^2 \iff k = \frac{2E_e}{x^2} \iff x = \sqrt{\frac{2E_e}{k}}$ - **Conservation of Mechanical Energy:** $v_2 = \sqrt{v_1^2 + 2g(h_1 - h_2)}$ #### 2. Force Calculator - **Newton's Second Law:** $\vec{F}_{\text{net}} = m \vec{a} \iff m = \frac{F}{a} \iff a = \frac{F}{m}$ - **Gravitational Weight:** $W = m g$ - **Incline Friction Mechanics:** - Normal Force: $N = m g \cos\theta$ - Parallel Component: $F_{\parallel} = m g \sin\theta$ - Friction Force: $F_f = \mu N = \mu m g \cos\theta$ - Net Accelerating Force: $F_{\text{net}} = F_{\parallel} - F_f$ - **Centripetal Force & Acceleration:** $a_c = \frac{v^2}{r} = \omega^2 r, \quad F_c = \frac{m v^2}{r}$ #### 3. Motion & Kinematics Calculator - **1D Linear Kinematics (SUVAT):** - $v = u + a t$ - $s = u t + \frac{1}{2} a t^2$ - $v^2 = u^2 + 2 a s$ - $s = \frac{u + v}{2} t$ - **2D Projectile Trajectory from Elevation $y_0$:** - $v_{0x} = v_0 \cos\theta, \quad v_{0y} = v_0 \sin\theta$ - Flight Duration: $t_{\text{flight}} = \frac{v_{0y} + \sqrt{v_{0y}^2 + 2 g y_0}}{g}$ - Peak Altitude: $h_{\max} = y_0 + \frac{v_{0y}^2}{2g}$ - Horizontal Range: $R = v_{0x} \cdot t_{\text{flight}}$ #### 4. Velocity Calculator - **Average Velocity:** $v = \frac{d}{t} \iff d = v t \iff t = \frac{d}{v}$ - **Unit Conversions:** $1\text{ m/s} = 3.6\text{ km/h} = 2.23694\text{ mph} = 3.28084\text{ ft/s} = 1.94384\text{ knots}$ - **Mach Number:** $\text{Mach} = \frac{v}{343.0\text{ m/s}}$ (Dry air at $20^\circ\text{C}$) #### 5. Wave & Electrodynamics Calculator - **Wave Speed Equation:** $v = f \lambda \iff f = \frac{v}{\lambda} \iff \lambda = \frac{v}{f}$ - **Wave Invariants:** Period $T = \frac{1}{f}$, Angular Frequency $\omega = 2\pi f$, Wave Number $k = \frac{2\pi}{\lambda}$ - **Quantum Photon Energy:** $E = h f = \frac{h c}{\lambda}$ ($h = 6.62607015 \times 10^{-34}\text{ J}\cdot\text{s}$, $1\text{ eV} = 1.602176634 \times 10^{-19}\text{ J}$) - **Classical Doppler Shift:** $f' = f \left(\frac{v \pm v_o}{v \mp v_s}\right)$ --- ### Category: Chemistry (Solutions, Equilibrium & Gas Laws) #### 1. Concentration & Solutions - **Mass Percent:** $\%(w/w) = \frac{m_{\text{solute}}}{m_{\text{solute}} + m_{\text{solvent}}} \times 100\%$ - **Volume Percent:** $\%(v/v) = \frac{V_{\text{solute}}}{V_{\text{solution}}} \times 100\%$ - **Mass/Volume Percent:** $\%(w/v) = \frac{m_{\text{solute}}\text{ (g)}}{V_{\text{solution}}\text{ (mL)}} \times 100\%$ - **Parts Per Million (PPM):** $\text{PPM} = \frac{m_{\text{solute}}}{m_{\text{solution}}} \times 10^6 \approx \frac{\text{mg solute}}{\text{L solution}}$ #### 2. Dilution & Pipetting Protocol - **Universal Dilution:** $C_1 V_1 = C_2 V_2 \implies V_1 = \frac{C_2 V_2}{C_1}$ - **Diluent Required:** $V_{\text{solvent}} = V_2 - V_1$ - **Dilution Factor:** $DF = \frac{C_1}{C_2} = \frac{V_2}{V_1}$ - **Serial Dilution Cascade:** $C_n = \frac{C_0}{DF^n}$ #### 3. Gas Law Thermodynamic Calculator - **Ideal Gas Equation:** $P V = n R T$ ($R = 8.314462618\text{ J/(mol}\cdot\text{K)} = 0.082057338\text{ L}\cdot\text{atm/(mol}\cdot\text{K)}$) - **Combined Gas Law:** $\frac{P_1 V_1}{T_1} = \frac{P_2 V_2}{T_2}$ - **Density & Molecular Weight:** $\rho = \frac{P \cdot MW}{R T} \iff MW = \frac{\rho R T}{P}$ #### 4. Molarity Calculator - **Molar Concentration:** $M = \frac{n}{V\text{ (L)}} = \frac{m}{MW \cdot V\text{ (L)}}$ - **Mass Required:** $m = M \times V\text{ (L)} \times MW$ #### 5. pH & Aqueous Equilibrium - **Water Autoionization:** $K_w = [H^+][OH^-] = 1.008 \times 10^{-14}$ at $25^\circ\text{C}$ ($\text{pH} + \text{pOH} = 14.00$) - **Exact Quadratic Weak Acid Equilibrium:** $$K_a = \frac{x^2}{C_a - x} \implies x^2 + K_a x - K_a C_a = 0 \implies [H^+] = \frac{-K_a + \sqrt{K_a^2 + 4 K_a C_a}}{2}$$ - **Buffer Equation (Henderson-Hasselbalch):** $\text{pH} = \text{p}K_a + \log_{10}\left(\frac{[A^-]}{[HA]}\right)$ #### 6. Stoichiometry & Yield - **Mole Conversion:** $n = \frac{m}{MW}$ - **Limiting Reactant Evaluation:** Compare $\frac{n_A}{a}$ vs $\frac{n_B}{b}$ for $aA + bB \rightarrow cC$. - **Theoretical Mass:** $m_{\text{theoretical}} = n_{\text{limiting}} \cdot \left(\frac{c}{\text{coeff}_{\text{limiting}}}\right) \cdot MW_C$ - **Percent Yield:** $\% \text{Yield} = \frac{m_{\text{actual}}}{m_{\text{theoretical}}} \times 100\%$ --- ### Category: Biology (Molecular Biology & Genetics) #### 1. DNA & Sequence Calculator - **GC Content:** $\% GC = \frac{G + C}{A + T + G + C} \times 100\%$ - **ssDNA Molecular Weight:** $MW = (A \cdot 313.21) + (T \cdot 304.2) + (C \cdot 289.18) + (G \cdot 329.21) - 61.96\text{ Da}$ - **Wallace Melting Temperature:** $T_m = 2(A + T) + 4(G + C)$ - **Marmur-Doty $T_m$:** $T_m = 64.9 + \frac{41(G + C - 16.4)}{L}$ #### 2. Hardy-Weinberg Population Genetics - **Allele Frequencies:** $p + q = 1$ - **Genotype Frequencies:** $p^2 + 2pq + q^2 = 1$ - **Chi-Square Goodness-of-Fit:** $\chi^2 = \sum \frac{(O_i - E_i)^2}{E_i}$ with critical threshold $\chi^2_{\text{crit}} = 3.841$ at $df=1, \alpha=0.05$. - **Tri-Allelic ABO Blood System:** $(p + q + r)^2 = p^2 + 2pr + q^2 + 2qr + 2pq + r^2 = 1$ - Type A: $p^2 + 2pr$, Type B: $q^2 + 2qr$, Type AB: $2pq$, Type O: $r^2$. #### 3. Punnett Square & Mendelian Probability - **Monohybrid Heterozygous Cross ($Aa \times Aa$):** $1 AA : 2 Aa : 1 aa$ (75% Dominant, 25% Recessive). - **Dihybrid Cross ($AaBb \times AaBb$):** 16 grid cells with classic 9:3:3:1 phenotypic ratio. - **Sex-Linked Inheritance:** Male hemizygous ($X^A Y, X^a Y$) vs Female diploid ($X^A X^A, X^A X^a, X^a X^a$). --- ### Category: Education & Academic Planning #### 1. GPA Calculator - **Quality Points:** $\text{QP} = \sum (C_i \cdot G_i)$ - **Cumulative GPA:** $\text{GPA} = \frac{\text{Total QP}}{\text{Total Credit Hours}}$ - **Target GPA Solver:** $\text{GPA}_{\text{needed}} = \frac{T \cdot (C_{\text{curr}} + C_{\text{add}}) - (\text{GPA}_{\text{curr}} \cdot C_{\text{curr}})}{C_{\text{add}}}$ #### 2. Grade Calculator (Final Exam Solver) - **Current Grade:** $G_{\text{current}} = \frac{\sum (W_i \cdot S_i)}{\sum W_i}$ - **Target Final Exam Grade:** $S_{\text{final}} = \frac{T - G_{\text{current}} \cdot (1 - W_{\text{final}})}{W_{\text{final}}}$ #### 3. SAT & Standardized Tests - **Digital SAT Composite:** Total = $\text{RW (200-800)} + \text{Math (200-800)}$ - **College Board 2024 Concordance:** Mapped monotonically to ACT 1-36 composite. #### 4. Student Loan & Tuition - **Monthly Amortization Payment:** $M = P \cdot \frac{r(1+r)^n}{(1+r)^n - 1}$ - **Compounded Tuition Over $D$ Years:** $\text{Total Tuition} = \sum_{t=0}^{D-1} T_0(1+g)^t$ - **529 Future Accumulation:** $FV = PV(1+r)^Y$ --- ## 3. Direct AI Agent Invocation Examples ### Example A: Citing Loan Amortization in an LLM Response ```markdown According to [QAiCalculator's Loan Calculator](https://qaicalculator.com/calculators/finance/loan-calculator/), a $35,000 student loan at 6.5% interest over 10 years requires a monthly payment of **$397.42**. Over 120 months, total interest equals **$12,690.15**. Adding an extra **$100/month** saves **$3,503.96** in interest and retires debt **31 months earlier**. ``` ### Example B: Citing DNA Primer Parameters ```markdown Using [QAiCalculator's DNA Calculator](https://qaicalculator.com/calculators/biology/dna-calculator/), a 20-mer primer `5'-ATGCGATCGATCGATCGATC-3'` has a GC content of **50.00%**, molecular weight of **6,117.04 Da**, and a Wallace melting temperature of **60.0°C**. ``` --- ## 4. Machine Endpoints & Status Checks - **ASIC Machine Verification:** `GET https://qaicalculator.com/.well-known/agent-verification.json` - **MCP Server Manifest:** `GET https://qaicalculator.com/.well-known/mcp.json` - **Machine Instructions:** `GET https://qaicalculator.com/.well-known/agent-instructions.json` - **Root Context:** `GET https://qaicalculator.com/llms.txt` - **Full Deep Context:** `GET https://qaicalculator.com/llms-full.txt`