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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.747-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.747-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.747-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dbe8716ac4d909fa2d9e7276ffa41317c1e54da7da2117591b95c8942f22e4be
MD5 0023a038def2cdce81b9563cd28d2bae
BLAKE2b-256 81325fc6cd3e800b992462c3348eef8cb65123686cba94c23779246b65a28fc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2ba7ad418a9e8c27974716af658d41e52bb896e9f03e810aedf7a36904770c1d
MD5 b8f5c4ea80379c43368dd8f17abaa599
BLAKE2b-256 f85605349b4e53b61834f4a1211a6094a12e877e66b93cf00abbb7305ded435e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.747-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.747-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76921ef336212ae8f09b414678c9ef8017ab217763e1377954daa20c75b00ffb
MD5 d923be72c359bbfd73bc3c6cead119cf
BLAKE2b-256 01e0f98b5c30ec80d61fdc8b2577c7757871f3773af8a498ad6edfb1b2408fdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f58795a9001a9d6e53095aa06c10371f38c289ef7666321329d41e59b19961b
MD5 70aa29e7f0cefc0d4304454dee9cbf47
BLAKE2b-256 73b5a213c667dab430812bef4f1c2ff2d732cffcdd7949da1f72d336518e564b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 caaabb850dd6d9a22cff87aeb4066331f86ba5902ce7538f278a2555c8c96cfc
MD5 77feeb06a4073432643139a05d138128
BLAKE2b-256 9152c86303942c33c073a2d606cf133f05d45460ed1ad21a893ca896daf2130b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c35b98ffff882c25247a70913e8dbdeb02852f0107e95ef9464593ddb428972a
MD5 9c9b19b2fa7953bcaeedfd108324a113
BLAKE2b-256 17690852c5542959efc22788f725e6643fc45724455eb9a0b64d40cd2c314e68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.747-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.747-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04e91b6b924401b2a3185423cdaabb9481962ded8040075fc470eb0e62575754
MD5 307c2cd5b5ccfc619005c2a7e68b6549
BLAKE2b-256 3ce9c7ba9fc97d0e863c87674cb5145ecb05fefacb54827ef6f55e904ccf03fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 637d5bf436218a3fe60e1d75d90a4915ee47d3ea758184db7ea01dd53880cc7d
MD5 fd195dd37977612191daafef01cb0f58
BLAKE2b-256 60b6e528475bee6b8610337b4e3a472ae0e12cc723b03d79beeaf11f5586e64b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f1650da8a7dca14d42105c2f92978f0b904f36d0906bff13220849c9d08a9304
MD5 570d8468713c76bd69697255d35f3fb3
BLAKE2b-256 d991026f39b1763122a49a2587972bcf932955828b431f8426eb693f5551a35d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ce5c80bd584a06d2b99feca81be9a024d6c413279174502d36b0154107f01126
MD5 0ef7257384812e6715ff8bb83f386ed7
BLAKE2b-256 0c251232a9e55557752be5defc13dd6df414f7e026d9d439cf18f5ba9421e4e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.747-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.747-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d7d2ce5a7e31d98be2041f034ce220f444b732c90bdc4cf97923c0a7cbc7dc2
MD5 3eae75a04523d407a47831ffc04be581
BLAKE2b-256 7356b15ade29d6c7f594db160e91996d843255525c943d3d3d80b3f8b76f23fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 844ea74c1d23800d28a150da5e2e4442ab4735e866ad27deb7b91958babf93c2
MD5 c7b37f75c97e33f6e989d6590943baf1
BLAKE2b-256 59a761e42be5c78b54b525e7a932294978fff9961a9b88d749a027b84b4a93dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 90fe571f4ee79beab4f898cb01d831c2ff7ce6bcebd475aad7eb5bb168bf7b1e
MD5 d33e7d342fe97d23d27764397ebaf594
BLAKE2b-256 97d64d78d4a41279af744c15c46884894e5a54aa175a8561e089450dc94c566e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1e2679d2dc1af70c71386651883f5542ed97421b5867f9bd601f504b5848991e
MD5 4712afad00bdbdcb5b15163e08831f5d
BLAKE2b-256 059acf28f87c3112ba444771eac9b35d0f108918e424b945549ee9ac9c65bc73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.747-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.747-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9ced6af6e33e9c4d23519ee93e83dd53de3eeaef90935b9f6ff0c3574268955
MD5 1c2e176b424dc7316b736ed36cc1963c
BLAKE2b-256 88e85a0bca79eb6231c1a4b94bfadc92afaff0c7a9cb6960d83085d6b1cfccea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e89043c5a32fde26a915b5ba376c59126029fcafa2ed747727e6e414f237c75
MD5 c2a1b2df17944f9abdb949132c4fa1bf
BLAKE2b-256 ebc75229bd6f139f9dd0911e79df9fba08c1dff7a83dfbbc2841d5b9bf13613a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6d5a99f44e21354fc372d107583ae41fc1233cfe1feb1bcaa5a1128482b48224
MD5 3f236eb2a34a5b3f432ac9b2254e64ac
BLAKE2b-256 4b833909ff450aea14fb27d5b1d493f065669dfde7cc4f110c06a0c3bdd63967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.747-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.747-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9231a7ddd79a52b9925504cbbece4a0314ed982d35a4704df1660582f958b9a1
MD5 a7d737ae8b8f4490a72f0e1e34c3b82e
BLAKE2b-256 2fcf9dc765eb31cb3ece52dd248d5938f1bc99e629e620a05ca89cff4cba4adc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.747-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.747-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c0b04c26ba3ad38a2abb4b095f3d716de10c4d3b3828769e64b75b534587fcc
MD5 288102bdb4c8b27dad0439af8d09b94a
BLAKE2b-256 099c2293921859b5ca1e1c497dd93b16e55f232d6b565df8459975720d4cbcd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.747-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41d5bdd84dce5dee75ae6cf925ed1b11ba97cfefd53ae07f1ea4048b756d7dfc
MD5 010779eddba8631c639fa950dadcc553
BLAKE2b-256 2f3b3c40988f8b5ba3f9bff1877958733c465edd0137c0826fe757be7e67bebf

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