jiheng

v0.3.9
io.github.CQQOOQ123/jiheng Checked 2 days ago Published 29 days ago

Exact math execution layer for AI agents: fractions, finance, units, dates.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

calc

Evaluate a math expression exactly: fractions stay fractions (1/3), radicals stay radicals (sqrt(2)). Symbolic: solve/diff/simplify/expand/factor/subs. Built-ins: sum/mean/std/median/quantile, loan_pmt, npv, cagr, discount, markup, convert, unit_convert, normal/option functions (norm_cdf, black_scholes_call), dates. Common composite functions: norm_cdf(x), black_scholes_call(spot,strike,years,rate,vol), npv(rate, flows[, start]), loan_pmt(principal, annualRate, years), unit_convert(value, from, to). Call functions() to list names, help("name") for a signature. N(expr, digits) is numeric evalua…

ParameterTypeDescription
defsobjectoptional custom constant/function definitions
exprstringfinal expression, e.g. 1000*(1+0.13) or mean([1,2,3]); optional when steps are given
stepsarraynamed intermediate steps; later steps can reference earlier names