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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.873-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.873-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.873-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 565cfd34bcfe17d7e26ff4e018bcaac1dbb7c4e0168a6c52397dce039216a63f
MD5 f5f58d76cc2045864c307332a4a509ab
BLAKE2b-256 6a767ae3d333e01ca7534fa48bca7469a29f81ef3b886730e038172c0ae201de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2882fa95593041eedfb98e9e04dea2ad9f62b893780786c0d49a54c8eb10ed7d
MD5 925426357476e4642c1cf7f93e8ab296
BLAKE2b-256 2f9812f99ca88dbd4fb96f4509003d0a5994ae4902d7349a6d36793d902d40f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.873-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.873-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d34c885f79c89f50cb52a4b12b46c18eddf5c813c00ad54b7d813ca902b318bc
MD5 bc533d17879218eed006a31c0bcbd894
BLAKE2b-256 e2a16614d660cf1ad623c04fb089270f039e67a5bbfde72687b483ac5d4157af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3aae308f1c13b78e32e4355e5adbb948e8f9d37ca943ac3efdc59535744ab41f
MD5 21255ad02f261c203ebeca77f9ecfb75
BLAKE2b-256 f4f49bb3be37dfba073e7c0610c60d02abfb8eee7f7280fdec9f2ec6e1c25328

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5efa476546df1a1b2f7d210a36eee1b635f3529d49493ecd75930aea23994edc
MD5 44d7ef479db825a3b231a2190455406a
BLAKE2b-256 d1065ef01e5446f0f22b6566bf7e5f196396901f14ad6b2c804190b59c024365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d768210ce607ac420d9e38916130a66cbc6b0be45c7a880a0923ff15ffecd37f
MD5 5accaa56a3e73b2e42403b820a26c067
BLAKE2b-256 fa5b28a806a081839e106beaca1d7b3d0e828d8b76ae53abc61cbeb9b1b92495

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.873-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.873-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9967c654fe182bdb05e56d8663256e6305d961a27b0cf5e08ddf0b9ac0b72296
MD5 f3312e5a040e61fab303dfe9628c56b6
BLAKE2b-256 2ab7effc41c9b0076a098e7465282e4ce7e54a0d5a95c57fb81001da831cd3bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82f9559aaacd682b3b6c3f7291d12a4c0142c240f922c01608d44a4cce385fac
MD5 f8a0513cc07d59544177bec952903f93
BLAKE2b-256 308d85f576d2d1cdacf8794803200792af2f77448f7be8c6a6ac7134c5b08d7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c91a388f9ffd81b8d261646c4f994cbc6c810fea4bfbf481b9a42da58c73d80c
MD5 41ce16d82cabaede38cd4cce14923c62
BLAKE2b-256 dadeede52684a115c1022754225d5c6fcd15ded5402c685dc14132ff80648198

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c1bdb4770daf65cf8fc5255e92429de7e5e13a0e4bceb9e2e0e8f2cd69d0ecc8
MD5 52099fd1cab5c097b2eead6d346db927
BLAKE2b-256 1b29f078d32eb8919c98f6e824313f19654fa19020716f8043a72ae4bae3bb1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.873-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.873-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfcca9fe54aca8841a6e15a7a4a3f8856d4e2e68d4fd9174c6839aae848bd33c
MD5 356bb10a7436cfc61fef6a9fb81889e9
BLAKE2b-256 30308ebafe3905ec598372279a8977adbcd26673dfe033110aacb664e7fba070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbab5f7e0e2ed3329f205328eb16c367974c3820fb7f28985bfbae067cea11f7
MD5 877c9d5f389f69404637f78f36c67501
BLAKE2b-256 0abc08bc1eecb57e11ae9fce3bd7058312f4b94937a23d47b13c1b72a3750e25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c1a855ca38b1c8f406d5bc049b7881f95537c0e5f627f52d83ab7ce4e3628f7f
MD5 7e43903cdc430499750a1b22ef6f0071
BLAKE2b-256 626b567cb61159a6f01791d8c47829ca54baf83370f40e9235ed55c42ad44553

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d627481f6a83530f54019d1ee16792ba2a3ac5c2b2736668b6ac59c3575c7ea6
MD5 30d8145523c255cc46b30d793b9f08b5
BLAKE2b-256 b4a133152a458bef6d6c862cab7f3fc4fa8366fedfece99949b3a98305df329c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.873-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.873-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1138fd7f750fa9edfb52bfbe879c018cff28d0e132cadd389470d9a2fca0de14
MD5 a722043751f25c3148d3a4a28c529fbe
BLAKE2b-256 d94395b6a827f36f372d5668a50df6ea7e709c6db558e22f7a44c058ccb714f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a875e222610bea2543e0145be93e69ef7a17a3c6b0fd017e1fbbfbb770786750
MD5 e23079f37679412b5a788339af8c49a3
BLAKE2b-256 d0c6b2b7e04acc9d84f576393c4399c2a286699650e962b5f0ea702432cdb056

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 52b38b73c485de1b91b66101ea11a2d1ad5ddbb3b659aa903a020c6fea1badc0
MD5 ec43d269d521106c41c51bde052e3f06
BLAKE2b-256 bc11218d9fa5a69517b63077ce7c72815ec2c5e0524a3f0f35fc1ac40a910b06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.873-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.873-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d116a5c57918ee0cbfe16ff7a8083a062bc6371c31e65af0ca41f0026c409ebd
MD5 afecb1d9109c389b9dbb52129b333fcf
BLAKE2b-256 5909d5365c1b561b3399580b0dc7b3c83fc7b000fada1216e7d4a9af8600b715

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.873-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.873-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b36a30410b12aa1bbdb4ca0e66d9c5fcebf970d11097fcafdfaa9ee98adc5a7d
MD5 962a8a9eb8353d52de22da22b7db6e7c
BLAKE2b-256 720af186fba180032f38813b6124c0c3ba1c4fea020f79542f04ca1463ffe024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.873-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c04d4b9855263add2d7f8880f3dcea142e7a8fd24b1526311f30f0c7755edb58
MD5 041d932b9f3bf274581b44ec54800321
BLAKE2b-256 1f0fe4ef4302d6b900c38fe948ca85d9584ad0a72f52fb6bf355ae8f4a519c6e

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