Skip to main content
Ctrl+K

eqdisco

  • Installation
  • Example gallery
  • API reference
  • The book
  • From the GP-OLS MATLAB toolbox
    • Citing
    • Changelog
    • All textbooks
  • GitHub
  • Installation
  • Example gallery
  • API reference
  • The book
  • From the GP-OLS MATLAB toolbox
  • Citing
  • Changelog
  • All textbooks
  • GitHub

Section Navigation

  • Expressions
    • eqdisco.expr.Primitive
    • eqdisco.expr.Node
    • eqdisco.expr.PrimitiveSet
    • eqdisco.expr.Expression
    • eqdisco.expr.register_primitive
    • eqdisco.expr.subtree_end
    • eqdisco.expr.check_safe_text
    • eqdisco.expr.FUNC
    • eqdisco.expr.VAR
    • eqdisco.expr.CONST
    • eqdisco.expr.PRIMITIVES
    • eqdisco.expr.DEFAULT_FUNCTIONS
  • Equations
    • eqdisco.equation.Equation
    • eqdisco.equation.scaled_expression
    • eqdisco.equation.regression_metrics
  • Losses and criteria
    • eqdisco.fitness.mse
    • eqdisco.fitness.rmse
    • eqdisco.fitness.nmse
    • eqdisco.fitness.mae
    • eqdisco.fitness.r2
    • eqdisco.fitness.max_error
    • eqdisco.fitness.huber
    • eqdisco.fitness.log_loss
    • eqdisco.fitness.misclassification
    • eqdisco.fitness.balanced_error
    • eqdisco.fitness.get_loss
    • eqdisco.fitness.complexity
    • eqdisco.fitness.gaussian_loglik
    • eqdisco.fitness.aic
    • eqdisco.fitness.aicc
    • eqdisco.fitness.bic
    • eqdisco.fitness.information_criterion
    • eqdisco.fitness.description_length
    • eqdisco.fitness.per_case_errors
    • eqdisco.fitness.LOSSES
    • eqdisco.fitness.COMPLEXITY_KINDS
  • Parameter estimation
    • eqdisco.optimize.FitResult
    • eqdisco.optimize.linear_scaling
    • eqdisco.optimize.lstsq
    • eqdisco.optimize.fit_parameters
    • eqdisco.optimize.jacobian_rank
    • eqdisco.optimize.redundant_parameters
  • Orthogonal least squares
    • eqdisco.ols.OLSResult
    • eqdisco.ols.ols_err
    • eqdisco.ols.forward_ols
  • Initialization
    • eqdisco.generate.grow
    • eqdisco.generate.full
    • eqdisco.generate.ramped_half_and_half
    • eqdisco.generate.ptc2
    • eqdisco.generate.random_expression
  • Variation operators
    • eqdisco.variation.choose_node
    • eqdisco.variation.within_limits
    • eqdisco.variation.subtree_crossover
    • eqdisco.variation.subtree_mutation
    • eqdisco.variation.point_mutation
    • eqdisco.variation.hoist_mutation
    • eqdisco.variation.shrink_mutation
    • eqdisco.variation.insert_mutation
    • eqdisco.variation.constant_mutation
    • eqdisco.variation.semantic_crossover
  • Selection
    • eqdisco.selection.tournament
    • eqdisco.selection.double_tournament
    • eqdisco.selection.epsilon_lexicase
    • eqdisco.selection.nondominated_sort
    • eqdisco.selection.crowding_distance
    • eqdisco.selection.nsga2_survivors
    • eqdisco.selection.crowded_tournament
    • eqdisco.selection.pareto_mask
  • Estimators
    • eqdisco.models.SymbolicRegressor
    • eqdisco.models.SymbolicClassifier
    • eqdisco.models.MultiGeneRegressor
    • eqdisco.models.GPOLSRegressor
    • eqdisco.models.SymbolicTransformer
    • eqdisco.models.Genes
    • eqdisco.models.CooperativeOLSRegressor
    • eqdisco.models.SparseRegressor
    • eqdisco.models.FFXRegressor
    • eqdisco.models.ExhaustiveRegressor
    • eqdisco.models.BayesianSymbolicRegressor
    • eqdisco.models.GrammarCERegressor
    • eqdisco.models.LLMGuidedRegressor
    • eqdisco.models.SymbolicEnsemble
    • eqdisco.models.logistic_scaling
    • eqdisco.models.split_terms
    • eqdisco.models.polynomial_library
    • eqdisco.models.function_library
    • eqdisco.models.hinge_library
    • eqdisco.models.make_library
    • eqdisco.models.library_matrix
    • eqdisco.models.stlsq
    • eqdisco.models.enumerate_expressions
  • Language-model proposals
    • eqdisco.llm.TemplateProposer
    • eqdisco.llm.LLMGuidedRegressor
    • eqdisco.llm.build_prompt
    • eqdisco.llm.parse_proposals
    • eqdisco.llm.propose_expressions
  • Dynamic systems
    • eqdisco.dynamics.NARXRegressor
    • eqdisco.dynamics.ODEModel
    • eqdisco.dynamics.SINDy
    • eqdisco.dynamics.SymbolicODE
    • eqdisco.dynamics.lagged_regressors
    • eqdisco.dynamics.narx_order_scan
    • eqdisco.dynamics.derivative
    • eqdisco.dynamics.simulate_ode
  • Domain knowledge
    • eqdisco.knowledge.Unit
    • eqdisco.knowledge.ShapeConstraint
    • eqdisco.knowledge.parse_unit
    • eqdisco.knowledge.check_units
    • eqdisco.knowledge.unit_violations
    • eqdisco.knowledge.buckingham_pi
    • eqdisco.knowledge.dimensionless_features
    • eqdisco.knowledge.check_constraints
    • eqdisco.knowledge.constraint_violation
    • eqdisco.knowledge.fit_surrogate
    • eqdisco.knowledge.separability
    • eqdisco.knowledge.interaction_matrix
    • eqdisco.knowledge.symmetry_tests
    • eqdisco.knowledge.suggest_structure
  • Simplification
    • eqdisco.simplify.fold_constants
    • eqdisco.simplify.apply_rules
    • eqdisco.simplify.merge_parameters
    • eqdisco.simplify.simplify_sympy
    • eqdisco.simplify.round_coefficients
    • eqdisco.simplify.simplify
    • eqdisco.simplify.canonical_form
  • Model analysis
    • eqdisco.analysis.pareto_front_indices
    • eqdisco.analysis.pareto_front
    • eqdisco.analysis.knee_index
    • eqdisco.analysis.hypervolume_2d
    • eqdisco.analysis.select_model
    • eqdisco.analysis.front_table
    • eqdisco.analysis.cross_validate_search
    • eqdisco.analysis.extrapolation_split
    • eqdisco.analysis.residual_diagnostics
    • eqdisco.analysis.term_table
    • eqdisco.analysis.learning_curve
    • eqdisco.analysis.structure_agreement
    • eqdisco.analysis.parameter_covariance
    • eqdisco.analysis.confidence_intervals
    • eqdisco.analysis.prediction_intervals
    • eqdisco.analysis.partial_derivatives
    • eqdisco.analysis.local_sensitivity
    • eqdisco.analysis.sobol_indices
    • eqdisco.analysis.permutation_importance
    • eqdisco.analysis.canonical_subtree
    • eqdisco.analysis.subtree_counts
    • eqdisco.analysis.frequent_building_blocks
    • eqdisco.analysis.building_block_network
    • eqdisco.analysis.variable_interaction_network
    • eqdisco.analysis.mine_library
    • eqdisco.analysis.semantic_distance_matrix
    • eqdisco.analysis.model_families
    • eqdisco.analysis.family_map
    • eqdisco.analysis.SELECTION_RULES
  • Visualization
    • eqdisco.viz.plot_tree
    • eqdisco.viz.plot_pareto
    • eqdisco.viz.plot_convergence
    • eqdisco.viz.plot_parity
    • eqdisco.viz.plot_residuals
    • eqdisco.viz.plot_partial_dependence
    • eqdisco.viz.plot_sensitivity
    • eqdisco.viz.plot_sobol
    • eqdisco.viz.plot_terms
    • eqdisco.viz.plot_err_path
    • eqdisco.viz.plot_building_blocks
    • eqdisco.viz.plot_variable_interactions
    • eqdisco.viz.plot_families
    • eqdisco.viz.plot_simulation
    • eqdisco.viz.plot_phase_portrait
    • eqdisco.viz.plot_equation
    • eqdisco.viz.plot_prediction_band
    • eqdisco.viz.plot_interaction_matrix
    • eqdisco.viz.plot_posterior
    • eqdisco.viz.plot_benchmark
    • eqdisco.viz.plot_compare_convergence
    • eqdisco.viz.plot_drift
    • eqdisco.viz.plot_dashboard
    • eqdisco.viz.BRAND
    • eqdisco.viz.OKABE_ITO
    • eqdisco.viz.PALETTE
  • Interactive figures
    • eqdisco.interactive.pareto_figure
    • eqdisco.interactive.response_surface
    • eqdisco.interactive.convergence_figure
  • Export
    • eqdisco.export.sanitize_names
    • eqdisco.export.to_python
    • eqdisco.export.to_numpy_function
    • eqdisco.export.to_c
    • eqdisco.export.to_matlab
    • eqdisco.export.to_julia
    • eqdisco.export.to_excel
    • eqdisco.export.to_latex
    • eqdisco.export.to_pmml
    • eqdisco.export.to_code
  • MLOps
    • eqdisco.mlops.ModelRegistry
    • eqdisco.mlops.ModelCard
    • eqdisco.mlops.RunTracker
    • eqdisco.mlops.DriftMonitor
    • eqdisco.mlops.fingerprint
    • eqdisco.mlops.environment_info
    • eqdisco.mlops.population_stability_index
    • eqdisco.mlops.psi_critical_value
  • Data sets
    • eqdisco.datasets.Problem
    • eqdisco.datasets.get_problem
    • eqdisco.datasets.list_problems
    • eqdisco.datasets.load_kepler
    • eqdisco.datasets.make_runaway
    • eqdisco.datasets.make_regression_problem
    • eqdisco.datasets.lorenz
    • eqdisco.datasets.van_der_pol
    • eqdisco.datasets.lotka_volterra
    • eqdisco.datasets.duffing
    • eqdisco.datasets.pendulum
    • eqdisco.datasets.narendra_parthasarathy
    • eqdisco.datasets.PROBLEMS
    • eqdisco.datasets.FEYNMAN
  • Benchmarks
    • eqdisco.benchmarks.is_symbolic_solution
    • eqdisco.benchmarks.run_benchmark
    • eqdisco.benchmarks.summarize
  • API reference
  • Export
  • eqdisco.export.to_c

eqdisco.export.to_c#

eqdisco.export.to_c(model, name='f', protected=True)[source]#

C source of a function double f(double x0, ...).

Examples using eqdisco.export.to_c#

Exporting equations to code, spreadsheets and PMML

Exporting equations to code, spreadsheets and PMML

previous

eqdisco.export.to_numpy_function

next

eqdisco.export.to_matlab

On this page
  • to_c()
  • Examples using eqdisco.export.to_c
Show Source

© Copyright 2026, János Abonyi.

Created using Sphinx 9.1.1.