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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.951-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.951-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.951-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e57ab917e0ee9ed6b6a54847302a99caeaa0334e3ea4b1e796c2bf5c09a27af5
MD5 f3f748741f00fa5fd4679bffa57837ac
BLAKE2b-256 d85e4d8c4fe4c8d897eeb3cc2e55a3b98a750418caf842188cf7f6f1319892d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ea373559913b0b8e2645850fdf99598cb75d7817ce45583aeeefaf0dc3df66d0
MD5 e4b2bb088c34b5b678fdd7224405d26b
BLAKE2b-256 fea80276b3883caab140772ee18683fa34845913523aa4a535c76fc9cd239d65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.951-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.951-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18bb7cc45447ece4867e031c0df7f67036f270f40a9992a1593c861c75ead04e
MD5 3b07e2e63410eb1110d3752e71342a48
BLAKE2b-256 c6ee5a6d47410b39ffb7b987eaed145772f455efa43aada3c7d6a65889f9327f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c4da3fe0e37fa4b3d69532d1c8cec9bab4eb0ce117f6fca9b122370365419c0
MD5 dfdd4abeba6e01c92c1b6b728bddac4e
BLAKE2b-256 1cbe64db8b87e57cead555bec5eaed680d0fd060ba54ac464d9aaf94c85cc860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 be548b351876de9c4bb462af59b70184d70c71ca8b59ee47b2d0172079a7b998
MD5 4e8154a8d2a9465caf328cf38f6af916
BLAKE2b-256 bb5f165d51591e7e4fabef8e138d1c55d5071cfce0a1311dfb18700b73ed1edd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ae13651297b9114ce2137bc40c99e63ad472dac9d82bf9bbaca6ad216bd77985
MD5 c00d74da238e451a78ea304173080034
BLAKE2b-256 72daff3161f25aa7fdfb66524b128300a2921c4c29fe7f1bea1db1c6f0c64ab7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.951-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.951-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ede859ca0ed39a2d1d8a4d7c48da4bd4543a6e260b2c96086a6c9adff579e50e
MD5 a7c72e781be8bb3da3a662342cb8172d
BLAKE2b-256 c9c6023f6e4c3dfac5fb063ca73cb4d32e2d9089d58bbf536b3bd9720bde083a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e7595ab5ce280e668828f9fe5a2bb7507f6951f7fc29a1bc0386f52d467b9bb
MD5 15be35c43b66d6427f85805630908c20
BLAKE2b-256 cce35a67de321ddd435c8487abb89c221dc421ff4d994280f5ca264219e91874

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 40073df43ff73c0dc69c031437f08ce215f0b8294066c53cc93e417790c84a69
MD5 ffc8cb90c2bd7db007bef1dddbe15419
BLAKE2b-256 5ae9f0e1a016760aa058d65e91705de4fb669a21c7d87a10103622628c1435f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0a9bda65c8a72430d39247b70f714cc71b643cc34ee0ca8962d17373bf9f67b1
MD5 9aa6c0fc92cf864f75bcca6c956c3861
BLAKE2b-256 971d3495656e4bc4dc657e161de0bdadb0f61e2f2948e47c638311700e6e974c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.951-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.951-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff07124716145e9c7990200d579b09eaec0711e8aebb96985c6b40d406871bd0
MD5 3f5682ff4ecc51e90b65a44007a30744
BLAKE2b-256 e725be17f5321ec4f5df394bcaabac7ef72b05eaaea35f0fdff060f3420c612a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b38852d31962993218f99ad67a30b88e36e003d42b6f18ed52165a46c0db12db
MD5 fbf1a6669dc0db19656f60404c077a35
BLAKE2b-256 1f718121339e7d58428d38976173f1f5007a20510ad06dafd729ce962952ab64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 768702be5504669a09fd126b143564f3332ac381c834a953b8913ddd5e23fdca
MD5 47311422ae50ab545a66abec301d603a
BLAKE2b-256 2c8bfd4618e215ef2f9c31c18f60a5420015edc22876d218a570cfda93445d56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3827944ff0f50c4e80fe3fa96643082b1307a2ed20a93eb0c0d7c8cc79d1ad89
MD5 76895993314f43c4154aecfe9c0b0c46
BLAKE2b-256 3ecf0871ca0c1879c2ad7a7bf44f0c0f3771001984b61f8e10448dc0d3ecfec5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.951-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.951-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fee948a22793559f21067aa92fcacb6f5491030b3e15efe39eafad7de15cc2e3
MD5 88710cb4ed3e599e0eccd82485c33125
BLAKE2b-256 2eb44cfc06168eaa59ccd998320a1993aa3aa5b11933e23605b33fbc829acb2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c51144ece365fa3b55bffb89f16a5cb7d0263a91b4580e7cc384522f337fd3c7
MD5 6c5aa102dfa0f39dc9d247cb2d0102f7
BLAKE2b-256 f80dcc7dc1c0889e489ddaaa5262d541893a36a8eb4385615262a6cb6cdbeaaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b7716d464a0fe6a2c5f75e09efcb2a77a29d2a76657c9e67337ebeabfb010cf5
MD5 17bcd1b50adefe2c2dde7ffceef5a1a9
BLAKE2b-256 e6fa43ea081fe8e62fb01fee7e62875748b2ecb993d279ce2184f8f6e48471f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.951-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.951-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a0054fa9d3db2f3b193f093d6bc10cb872d836d62614e00f821d5137f76a3eb6
MD5 4e12c17358135613ef2eef29e36b6f03
BLAKE2b-256 9268384ac9db1feef8c7394e4830e3dbaa14f9a19a728d13de06cdab943b1ba1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.951-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.951-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6723b071939150129a1cf8b301528361ec32ec31d91b65a38d046c503f63de65
MD5 d4ca35c8b1017346a8e33c736c933ae5
BLAKE2b-256 4baf203820aab1a83261ea74e377576822db42fb7a9ff21f09dc82b406017cf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.951-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb3099862f5cd96f8dd746aecb5b3afa89cfc9585638c79cffc14672b3ca790d
MD5 012e70e679611a26a7842c41d69e9b29
BLAKE2b-256 9f65e7cc02297ab22e6b6d475d8289c63d3d9c6d48a1fac0661a160d616c6fdb

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