New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gspera/meval

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gspera/meval

  • v0.1.1
  • Source
  • Go
  • Socket score

Version published
Created
Source

Math Evaluator

GoDoc

Math Eval is Yet Another Math Evaluator. for using eval is necessary to create an Evaluator with e := meval.New(). An evaluator contains the variables and the functions e.SetVar("x", 42). For evaluating expressions use the Eval method e.Eval("x+2").

Functions

eval comes with some builtins functions, others may be added in future: Ln, Log10, Log2, Sin, Cos, Tan, Sqrt. e.Eval("ln(2)")

Math Constants

eval comes with some predefine math constants, others may be added in future: Pi, E. e.Eval("pi")

Parser

Meval is currently built around a modified copy the Golang parser, this was chosen for the semplicity of implementing, in future a custom one could be used. The source code of the parser can be found in the internal subdirctory.

FAQs

Package last updated on 16 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc