math

package
v0.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package math 提供数学计算工具

支持基础数学运算、统计计算、单位转换等功能。 适用于 Agent 需要进行数值计算的场景。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tools

func Tools() []tool.Tool

Tools 返回数学计算工具集合

Types

type StatisticsOutput

type StatisticsOutput struct {
	Count    int     `json:"count"`
	Sum      float64 `json:"sum"`
	Mean     float64 `json:"mean"`
	Median   float64 `json:"median"`
	Mode     float64 `json:"mode"`
	Min      float64 `json:"min"`
	Max      float64 `json:"max"`
	Range    float64 `json:"range"`
	Variance float64 `json:"variance"`
	StdDev   float64 `json:"std_dev"`
}

StatisticsOutput 统计输出

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL