Math Evaluator that uses C Code over Python
Project description
Layla Mathematics is a python package that uses the code of C to make the eval syntax faster and more flexible.
Benchmarking: https://github.com/JewishLewish/Layla-Python-Module/blob/master/testing.py
Benchmark test:
-> Loop 100,000 times
-> Each time having an unique variable / output
Output: i + 2:
Python’s Eval -> .90 seconds
Layla’s Math -> .15seconds
i + abs(i):
Python’s Eval -> ~1.04 seconds
Layla’s Math -> ~.14 seconds
i + sin(i):
Python’s Eval DOESN’T SUPPORT IT
Layla’s C Math -> ~.15 seconds
Layla Mathematics is mostly used for heavy mathematics.
### Syntax
` x = layla.math("2+2") print(x) #-> 4 `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Layla Eval-1.0.5.tar.gz
.
File metadata
- Download URL: Layla Eval-1.0.5.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80695a55fc65e5b98807cc2a58a94f91e628711a006929961c2c0aa0e4a717b6 |
|
MD5 | 392ebc56d46473206483e23fa71af78d |
|
BLAKE2b-256 | d67ef470cd1d5e96ad84860233cdb514b5653d90d5f876f6284cb0d6070b2a3b |