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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.918-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.918-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.918-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a146d21afafb70d9d4820cd4afec6c302bd895907777c592fa95352591a3dd94
MD5 45b3ba1087e69fd02b05757ff7b5b1d1
BLAKE2b-256 2bb32ce92dc17204bb9f8667877297a6d9d2bcaf99ed0d281acf2cb663ef7e1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7ec0475a42b946d79b747d3e199480e8274c7bc830a8936841ccbc279d91a9e6
MD5 21a5753c7c278d0de8afc55ea915bb9f
BLAKE2b-256 c2947449a412c7d96c54f78bb53cb107746694619c7a7cb5075eaa352a1e361b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.918-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.918-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 64812dc9ad398785ac4182e58a863eb79b15da66bb1632efe39f6f09bf24e953
MD5 e2033a97ce715d0893ccfab565486281
BLAKE2b-256 920ed7854282c94317daa7adad8fe085c288c7967139528d9ebc55fe711f6efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2b40de08aeadd6555ad353d82699e36541fff4261319f19c6173394e1c14965
MD5 1fb6e2795ae1354353d0493d52f07864
BLAKE2b-256 454f8eae3a1ee249027178b50ab28de42791e17df573dfea532c235597fabba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a766e48ad7224d402f2061aacf34ecb5fdb4f2ab479a4ebe3871f4904c49cd77
MD5 02e480f06d9475e29b838c0fef18a516
BLAKE2b-256 0139fd1365daaf0aad1c15c384bdf7bbe3e7fd7260450d79705e7a804be05932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 41652be1121abf54268be51ef0da69ad87feaab4c9fe4a1c0bcfa6a84012cc7f
MD5 8753517fadc18ce46a401f47fc6f9d07
BLAKE2b-256 c05062a57da6b6c794c525169d01d81d5d033fdf7ef72acb61a36a1db5a1a890

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.918-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.918-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e5b6dc43517a81401784d4c4352796b18a21ba504ca5ff6516e03f5718b375b
MD5 b3137d7ee5eef675805e027b79615fab
BLAKE2b-256 bba50dcdfc4cb2d67f6289b3ddb03acdabe7c91ff1f0e7901aed093c8799d955

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0aefc46c3ea1548954ab4048292f6829c32b315e3a40b643bc6ca6833cf17a9d
MD5 fa258248a35071979850682157f37c79
BLAKE2b-256 b9d2c320a836ac18615649e8449f9e9b0b21194c81e46533fde5a0560454af4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ade5c96a397d8d54e6f0aafafc353a74a18fc3c53091a34b002e8052e3aff00
MD5 8f150e3be55190194f32a1cd53c0eebf
BLAKE2b-256 35325316897b015135213f1f91e598eaea484e2a1195d414e8de74297a84e36c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b8d6738eea4fe3716f2f51cf582dbbce1588be8e4a8bd228ba5cf3b33cb1bc23
MD5 2663a88715f872583d7ce0ff11b4b1b1
BLAKE2b-256 e7bc0219a9b91f7ab9582f4a87ff3a4dd64bd61d98163b8a86e8a09a9a0be580

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.918-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.918-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7fd5558e227aa7f6c7aca1afe60f02000a202aa830e5b715e2900ab2c02a26b
MD5 c36abf51a271e53a97ab1555a538ede5
BLAKE2b-256 c0f57ec8440db3a6e00c172074d71025804764ac11b27a09015b306d99a2159a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5a52b740847fbac18e2a40d5cce56c89de2db47e9370d9487b05d426d78bfc1
MD5 38213652ff05083dee2e6a0f6efee32e
BLAKE2b-256 b3415c24375490fe79708fad99ced90286967052da4a728d8e9510645202866d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6eda856b97e071a89d396bdf5bf3eff82e3ae982b9c02521e09c240a7835b70c
MD5 143d5b68cf55a4fa3f53a1f06cd846a4
BLAKE2b-256 dd51ad742bb260cafa0443136f8433b6e5dbf824d96b46ea22c37f3713112fd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 69c6271305c32c92cd16640d9bfb4889bf17bcde8d02cf7564c95c999f1abdb3
MD5 844d5439ad022812fb68ee92c7d40b45
BLAKE2b-256 80e514ef436df91d6fff9f1143e524dd3dabf0885976e165205901d4adc22935

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.918-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.918-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cafd70a6cfcf4890bd49d950bc07d0dbd0f7aba85f7aec67647b929fbe3b52b2
MD5 90c25187d402852f4220e996e419ea32
BLAKE2b-256 f5c3779bf79d0367fbadcd30b65d5fc8c52100b8e993234b3940c06d05de8ee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d76c8045d7b8a2da3acdcd4dda42f4d62063674e5b39a8e7d0a3f42425716ce4
MD5 5ae01f9012a41a635e17c4914399fb7a
BLAKE2b-256 ffaf8feea710c97c1668da13714e2cbfd9374851396c7a12347786dd857c89d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7ab777f8c001e13194050d1856826b8fa37de3da1497dbf22187a9ff3cdc9e48
MD5 56da93e8913c5a660089a7fed078811b
BLAKE2b-256 8d4937f60338fac22febfdf0eca98a31278ed947101c77d0ce14ce75b59a88be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.918-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.918-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c832768a115358c4da2bc74fbc19845d7532f72c6ad939294e1902e4e555af58
MD5 80c0d7fe0b6da4a745889151f67a5f0a
BLAKE2b-256 a4cae1a3c7e9b136f2161ebda60b3102589c7dd8a6995335e0890b4cac2b7741

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.918-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.918-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f97feb5a75e3877824733764a8e2278d18d7f4c70ab8e8dcf7f4098f50800a30
MD5 01a0f25b887b86db04261dbb7534f3b3
BLAKE2b-256 c3c84e554d980934ed1e7bb6d8b782e9eb0eb3a9ea71dd0844385c71314356fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.918-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e43fbd441138ab418bb30dc03cab77adb9da67a0306314180c83e9cfb27b432
MD5 b4263d1de9f03e9b1837cba95605c27c
BLAKE2b-256 89d19d06e3811d8b175a9adbbb811ec2fe3b9916682d37b6350ceabcc35ac8db

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