Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.820-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.820-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.820-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.820-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.820-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.820-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.820-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.820-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.820-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.820-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.820-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.820-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.820-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.820-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.820-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.820-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.820-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.820-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.820-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.820-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.820-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e1055890ca29f66bf6dad662a8312e4bf2ad9848ff64db7ef3eaa91700d0bf92
MD5 099d8be6e6c7fc92f5846c5102437eb7
BLAKE2b-256 03b8c494cc7cfb7f4c9db8deaa7bdd50fe9e6e28afea2a28378bd574e6915b27

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d797007c778446a54f03e7364e7e6338a6ff0d2b451aaa8f191f8461a58d6b1d
MD5 62a9863622a04d15a67109d3284aa9e2
BLAKE2b-256 168a8da74fc646c25aae62674e5e23da78e08db35c772af328554cfea37860d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b90afc41aea8c2eb0528b95dee144dac344e4ae8b1bc3ba5df88df369a068cb8
MD5 e5f505a12d68a807702652d6144b803e
BLAKE2b-256 0a97924b54d8a89a0ac421aa5751cf1727a4f1d8468cbf6660c3e35d8c4cd3bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a05d959b89f7bdc22a097cbe901120eef32ac8e7fdc7d26729b14a3ec630bba0
MD5 f4c0ab17796c2e2225c0fc9ad4ffe213
BLAKE2b-256 556b822dff6fa0b1a3a818b1b0f9bbadcdd474caf0e95212d8e4267cdd045a71

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9919197cad0a3f8e3138dc2aa75a4bb80cb5682bdefd8256a7d1d75bbbe81a56
MD5 8b5b515879ca1c790cb56b51215af442
BLAKE2b-256 a724b8be039d2a8f6aa9d52a209f777d5347b782a4e07087466d93fd8399f6a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e6f478ca34f61c6c3abc9320709cbcac98d9c3211a69976137bbb6ce3823275d
MD5 04ee905e5072807745a0cc0f2e8c185d
BLAKE2b-256 7d005e5de662e15bc24a2ef4bdaee562db8ccd7ab4393350b12a5b37925d0f1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b49f77c54b63c6506a4748257924ccd44c3f9c5b471f788f20b4e2ef7f959f4
MD5 9e6ebd1c4c1d31aa5f46820210f2c6fa
BLAKE2b-256 326265b0eccc019c8a31e5be084f52f54ed18299828c8388e18e85e1b4d644c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5405644fd50da835807508b6eeaf373bb2fd8956e03732fc25ffd1573cfbbad2
MD5 d4b8ef5870f7d47dce5cb78967028652
BLAKE2b-256 a46a52ba69812f5e1c699d01a90be479f1e4cae2250dc20fa19f6a4ae1a3ae3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 557b4dc5cd95a47d12eb22eaf61f3e1ef715b75f0f7bd83692cab62f92025376
MD5 e04bcda07696728d0465b03b4a1adbd7
BLAKE2b-256 a0ae382825106f104581cf740a7a7b2ebdac82ff2c436d0629f5ef18472fc704

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 941aed2da87aaca24783d168ed7310c0dcb858411f8c70820a56b39026a031f2
MD5 9f10c983439c6e46f62757a2a518dbec
BLAKE2b-256 85f9bf9109b123e79e7019b45d348c5569e552e82eb672322b8ae1c1f40d5f07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efb629edaec5e6e343236d1a78677c0d613fc4c9e1d1338a9ede26b601fba34c
MD5 e4bd62d1f1bd5a1314c1a82f88149817
BLAKE2b-256 ae1816d316080b08f4c9cf2604a5e17b09cceb20182bae90d41d5b9d1f0108c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5a7193bd5b08effc03c00d088ba39b49d40583506f20fcf2bec2cdd8b2019f4
MD5 06da6f5c1ddda3540e378ac815faeda0
BLAKE2b-256 556348ae33028fc7cd7b3e4b5f924579c8ca2652a560ef9989318c40eecc94e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5cdee300c4fbb660ef4b05b8c1f72be17f27e16e8454ac081bba708b00926637
MD5 8d030c5a9e1d320048b1eb412c686e17
BLAKE2b-256 b5de826ec2b752015a9bae0254cc705b8262bf9cc3a710b782b5869dd4067df2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 77ce775b87febaca73343aef793b944b3a72ce9bec7095640264b84556d8b769
MD5 48d405968f31abc0a4e92a519a0c14de
BLAKE2b-256 4a91a8965be0cf94c383522f9d4f7d8c8383bd473753aee1bd954dd83783867b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4a5d5d0b9599c5d95b8918a53a9f31d8ee37591531e76e76da7b1684386de3f
MD5 b7e091f7344e8319129dc0b1a9f0c673
BLAKE2b-256 4ac8a0fbc07aac69688f8d7bf2dd02ed0dac8b25269589e027ae082cd2ec6597

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c99914cb21e7c6bae3a66a049c2f34c607694900ba12ba083d171884bb2a7a3c
MD5 ef881a6e23542ca58b4852b3a5f8fb93
BLAKE2b-256 6b5f258c1e57b29ff4b2711012b47caa351d15339d56bef8a8ddd51e5519d5ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 08f254ae566ba609acf1a9b0ea80f0c7b83360488df985348677947b5d810126
MD5 11cae3e3cca31e28b1ea3ee4bf01362c
BLAKE2b-256 52e72d4599fd2ce3bfcedeb60fa377dd205c500aa5e1e7b3ccc9d804d7303f09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.820-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.820-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1b755fc1a69ceb3b5f7520d05b4e17ee57ec33434f6efe1e9664e2e1d8743c0e
MD5 828af66ebe3ca0b835946395126015ba
BLAKE2b-256 c188c8d02da3b5a3d14bcf993f79326d16db4a1fede49e801d3ba75b9bcb4220

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77ae515de0d4ca7b7aa8a35404a051506d864958f21494d8a73632a80c5f90fd
MD5 27829fd2af7a161491b926e68132b911
BLAKE2b-256 b48a559826020a4cbe771c03c86f6dd1d29447b985d7c0f4cfb87ac1dff78f60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.820-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.820-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e4384926d3108058d94b15b82f8b62f4868c8ded3acd3f1c9c9caba88a51110
MD5 3823915cecc85de55d371d7d71db598b
BLAKE2b-256 815b8822d2c646cda54b285cacda49cdbfb74d79a9add22e401c9f9811d5aaff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page