On this page:
calcura-service
datum->calcura-input

8 Optional Calcura Provider🔗ℹ

 (require animate/math/cas/calcura) package: animate

procedure

(calcura-service [#:module module    
  #:version version    
  #:query query    
  #:loader loader]) → cas-service?
  module : any/c = #f
  version : any/c = 'configured
  query : (or/c procedure? #f) = #f
  loader : procedure? = dynamic-require
Configures a lazy Calcura parser/Eval bridge without claiming unavailable capabilities.

No Calcura dependency is loaded during construction. Supply a module path or an explicit three-argument query callback. The default bridge uses parse-input-form-string and Eval; it accepts only recognized literal truth values as decisions. The injected loader accepts a module path and a symbol. Calls that cannot load the configured backend remain explicit failures.

procedure

(datum->calcura-input datum) → string?

  datum : math-datum?
Serializes the supported exact fragment with collision-resistant variable names.

Supports exact rational constants and the adapter’s declared scalar operator vocabulary. Scoped definitions should be expanded before transport. Ordinary variable names are encoded in a dedicated namespace. Unsupported symbols or operators are rejected rather than interpolated as arbitrary executable input.