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.793-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.793-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.793-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.793-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.793-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.793-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.793-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.793-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.793-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.793-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.793-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.793-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd6c82ffbc0b7a93e573f8884cb2ce9d8a9e81f8dc1e8d65f261838c26180958
MD5 48ddcb15412f3ebc1c04b761b41e6e7e
BLAKE2b-256 c5f864f8cf7ecbd9ac452ce2d7f642295d5084f3b3df977fc76d8b86879b1574

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b2983f9529e106aad1eb6a3a303f3c3b475c212305a3193ad7b9ded926a99c00
MD5 812728a14ee2055449274b9dab9100a4
BLAKE2b-256 62abbb284d86fb8320e0631e51a1db9b44ab749f50d974cdbac412336ce99fda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.793-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.793-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61cf8bcce4b14fdb3dfc74f684052b686d4aba2f46a926cf58af610775b8a03e
MD5 f117eef18df9fc64ec55ccfbfc9b0d62
BLAKE2b-256 902e948b2001cb86b763ad5ceedc7bbf1781b1c3c701d0545a40fc3d42686e15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cebf1a8f0d9ccef3a59a5fb225bf0d3b262df77dac728897d651a9906dd60ab
MD5 7600d7919823c63f9a0acaab617e278c
BLAKE2b-256 4b9bf5e1ce04d149c187624953d641b31ae3742d507eed7e50da12e3c836827e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85d918f32c4a1d222847528a1b747294089c94c8771c8b9c0ff66410d074452d
MD5 3a1943c81caac11d57a8e9de862e0f4d
BLAKE2b-256 279000ce1a5385b4e15992244f95e1bf90f78f52ac6fe368dcf2777c0b288213

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 04e5301dbb77b1b95576141f6d645da55a360dd2647ce79d2ae921857270f5d2
MD5 25d3d26b37001260c5a88de6db68c1b0
BLAKE2b-256 b887165de225c32c63cbe3519956f05e79988db3cb904e51e7cf5f2fb8e531b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.793-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.793-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea373ccadbf89dfc322b35fd7f0d923ee38318ad8215898edb93807362bc4ef2
MD5 d8666335431531eaa33caae18228342d
BLAKE2b-256 e7578d4d43ad5b74dcff66e0de155933ac4d936c8610c39248b26040f9d4ec90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48126f018879ed44c650ea39a884e66d53ae53bb221080bb747aa1f67192d448
MD5 fe82fd6229a7cd8db448884caccc22ab
BLAKE2b-256 78d2f25ba0e10eeb7cbeaad20c58994090ccf8103fc2444f928d99914da8e44e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64e88eff9a2a75dd66380cc1d0c9b35d121283775ac28eb0e6ee97a662e519fd
MD5 5effafb1006ff69280ab64946ad46e17
BLAKE2b-256 f6f5fb765e2f713d4584b1ee3f7a9c74067d00d15f35d3e9e9bc94e9a95195ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 50c299e413f943e3e0f9df4a109621ad396cf79fa9128acc67708da3c7c692e7
MD5 f9a2bf8ce96729ca8fba181fae8b4714
BLAKE2b-256 3afdd0cf358ab695157f0c09c67748a669fa2f44eaf60f210ba029ea4408618b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.793-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.793-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc421af0a829e0b1dd1663ff1904741a3e77e26679c92e1d0264493d692298e4
MD5 ba3b49016d3b2fe21cc2e9cf03abbc8a
BLAKE2b-256 5af5d7e785b2880574d3dba29a2c54e8c9dc3639eb7d21141cf6c342cc08b091

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18376472a31f19df825399a5e65e25dd98a7e405a8974aed0abeedb1b4872914
MD5 b033371ac65b17d8df2d64ef5e588ba0
BLAKE2b-256 5409f4644c094daa588565eb3b66bc57517841b05af74c5df456c2d8f6130e21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c1f24d32deb821878bfdcb4a7c720f2af58f82822d57223c6003808eca8ab440
MD5 ab6e0f5de2a95dc873e835f943693277
BLAKE2b-256 23b9eea4ef005ba6da323ad8f9f342d3cc3e38bf0ef2c381b85513c03e44d291

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ecfd072f9bae4371deae4ccb23630a0b28cd24220edbf92593298b1473e484e4
MD5 5c5ba42bd54959e89d75122da145f839
BLAKE2b-256 b7ead122710104d7d95f99ac42713886d9b79c0ac945d48edfb7618ab7d117db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.793-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.793-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f0cabc35b6cecf7cfc8643dab31ce9cb08c29adb8832ff85a14e80e938131ba
MD5 70ee41544494ad2bdb66734c1106e2f0
BLAKE2b-256 b582d5593b9413d99292f6547d08cd67597638b245d110070ad4e850a9686843

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec640ce2703fc140b029abc21c38a7d56da1be5fc8a65ce2d9e8a1dd24f471b4
MD5 cb2f1ca5cd2fb4c5274ac1b8335a2c3d
BLAKE2b-256 a4f46ac033e9aa0bda8bd0956c6e450e1e91bfa0fd7c23bc18dd4354ded4f3ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4bbdbd23f2fd35c234daf697fb728886415835cd159ef3f030d0f2a8418a89ef
MD5 c4cd15f40781ae7955d3aca90c7169a3
BLAKE2b-256 ccd3743a6d5b66979244b0494cbedcd1fa761b0d68b0bed89c577e723a0cd51e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.793-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.793-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c6660ac989c7950505f0646595ef9e38cdd9cd3b7c4759d75d072fb6693569f6
MD5 9b5c7d48252f7a469093ee33d1edddde
BLAKE2b-256 52bc3d1fdc52f033d592ada3d758687e3661ece31092e56dd90da590bcb53feb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.793-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.793-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aed1090e98828605983d95deeaafcbc90ea17bf4d110d8793d12c118cc35bcb7
MD5 5d47a7c1b4d2e30542123ed698efaca3
BLAKE2b-256 58230ef9618dbc3c5b21fdb44640b20e532ac0c09374fc1dac22d1963d58aaf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.793-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 843061b68ae41fad8fd6bf9314a5727a2cff9334ed93a9f02cf940723048cabf
MD5 32ee97f6c0c532792b2b8d1f974302bb
BLAKE2b-256 17e87af77561592801aa02260051a2f9546df149728f6736b78fa635c32f0f37

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