Cross Product
Vector Cross Product
An operation on two 3D vectors producing a vector perpendicular to both, with magnitude equal to the parallelogram area they span.
技术细节
Cross Product calculations are a source of common errors: a price increase from $100 to $150 is a 50% increase, but returning from $150 to $100 is a 33.3% decrease. Percentage points differ from percentages: an interest rate moving from 2% to 3% is a 1 percentage point increase but a 50% relative increase. In computing, floating-point arithmetic can introduce rounding errors — JavaScript's 0.1 + 0.2 = 0.30000000000000004. Use integer arithmetic (cents, basis points) for financial calculations.
示例
``` Logarithm identities: log_b(x) = y means b^y = x log₁₀(1000) = 3 (10³ = 1000) log₂(256) = 8 (2⁸ = 256) ln(e) = 1 (e¹ = e ≈ 2.718) log(a × b) = log(a) + log(b) log(a / b) = log(a) - log(b) log(a^n) = n × log(a) ```