project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

EVM+

EIP: Decimal math for EVM. If EVM is a basic calculator, EVM+ is a scientific calculator.

EVM+

Created At

ETHOnline 2023

Winner of

trophy

🏆 ETHOnline 2023 Finalist

Project Description

This EIP adds decimal float OPCODEs for arithmetic (DECADD, DECNEG, DECMUL, DECINV) and expression of all elementary functions (DECEXP, DECLN, DECSIN). All decimal values upto the maximal precision allowed by a int256 coefficient and exponent are represented exactly, as c*10^q. All implemented algorithms converge for all inputs given enough precision, as chosen by the user. All calculations are deterministic and gas is embedded bottom-up. Allowing high precision decimal elementary functions invites the worlds of mathematical finance, machine learning, science, digital art, games and others to Ethereum. The implementation is functional.

How it's Made

golang, fork of geth, GCP VM for public EVM+ node, Yul for smart contracts (Black-Scholes and Neuron), bottom-up gas calculation by wrapping uint256 lib, decimal math, Taylor series of exp and sin, continued fractions expansion of ln, scaling of ln input to interval ]0, 2], ethers.js and geth console for testing, all on stream.

background image mobile

Join the mailing list

Get the latest news and updates