mathdemo

package module
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 1 Imported by: 0

README

mathdemo

Just a demo repository to learn creating Go modules.

Documentation

Overview

Package mathdemo provides some important math operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[N Number](a, b N) N

Add calcluates a sum of two numbers.

See https://www.mathsisfun.com/numbers/addition.html

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Number represents... a mathematical number.

Jump to

Keyboard shortcuts

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