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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.2.61-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.2.61-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.2.61-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.2.61-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.2.61-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.61-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.2.61-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 950820e2a498917c258ab584e86990c6b0bb54390aa716b6159067f01001ec0d
MD5 3a0b610995b6f332e1138552cd7a686e
BLAKE2b-256 4265f74c6c14821acfd043d933b7f7de40ae16ca6c684ce1534f47f9ef3c384a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fd6ee03c863cb3f14abc9c15d7b4a834db23893256c2d33327691e556874adcc
MD5 f8322cbf98ea3aac1372527091fbb472
BLAKE2b-256 b0d969710d3d5881659b2196cc77fa58b6a7f2f33faf8855d487f7880e78f91c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.61-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.2.61-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d37f7c93f9466d162cb047d209f694b9df4fff1cf4deb4d353b40e78061fc388
MD5 b0534ecaeabe311ee3648d05f9397757
BLAKE2b-256 69f2d9ba94c29a899c93e56792f34449d813d0ae276e22c81bceec0677e10e12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.61-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfa2e67d3fc2b41e322d66888f5d68895f423dc93e5d2c95073f6a9cf7b4c317
MD5 27a09bec1716eb1a7f0da02651e2d672
BLAKE2b-256 374e0d1224d810c20e0a00aa17c3ff2600667b69c048552bff68ac4c0221e66b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.2.61-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 93fddbab0322cbad6eb810ce2e208f938c21ceaf1e360579fefde8cdcb9a1109
MD5 03a0b2af5bd41bdde2ffde3f96a03434
BLAKE2b-256 8a6884291d6df1dbb48d5a0ec1283b28583300d5979f4b844192135ac47a2d5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 994e15a20229789389e992378a23dea6c91898be1648378355d6d0d1eaa7d489
MD5 e6e80d4f9b3ae558a7be839174f6eff3
BLAKE2b-256 b287899fd9c537ad8757c5540040cc884a52bec1285f90fd2760308812e0db5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.61-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.2.61-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e17968cc655aa51c5dd84cc0112ccc052db8e50dc00dd4684f003cf4ccf5ddc
MD5 a0f372fd1b44b05dfb6c3e2acd848671
BLAKE2b-256 213fdccba37c035d0a565acf88c84471b5c9bba979a92facca886ede4a4f0dbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.61-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e96c3159512ad5b4f29d82c6965024182555656a7e46118744571eb6d16ceac4
MD5 b938e8a6f4f621300210bc932611bff0
BLAKE2b-256 9ee771dab7c4c6e5cf7f0e508470104c08ac6b35127ac37cae631beeac4eba86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.2.61-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba159d789d0f98bfacaf5bb2c26c772af2e2df3b12546b5fec28318b8981ae0a
MD5 b7cb8db0f7fc1423ae9a99d2c6f9428a
BLAKE2b-256 19624ee752ef825f6fd9affb475418195a51b0d753e06167076543e210de57d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 42dec9d0090680df1191bc34a064c713c870e81849bb83764aaaabf4112afa81
MD5 96e035435cd06d0dd989d34e0062b175
BLAKE2b-256 680ee2cad88f5ec4432c41203232fed7355da6733434b878cb47d7a7880a76e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.61-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.2.61-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8b5eb80ba7e03976a4a822f2f3e8d1db600e5f21bf8789ffb83b3238ef0dec3
MD5 a234e2b2ce320c302cdbecfb991f2d48
BLAKE2b-256 2bd066ccf9dd4b01fc2310611097efb02c3ef49ae5a564dc7539232a45480645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.61-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea7342ae6ea8b7ab078106d1604e1c6de0ab76bdfe73063c6ee9e150a63770e1
MD5 3befd47fd136bae8a9e1432ab3c3b95c
BLAKE2b-256 b870629aa7a6d39e45822146267782b54426c14061aaaa3bb14c208abce163c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4f2d8bca84ad03b3d3859dc83ca44fd5a5cd403b416d6293b427642d545b01ed
MD5 d553db61de1576ea48d4246e35f1f612
BLAKE2b-256 8611486f31fc65e7deb63888194bc1079cd36af35d918eefbf50136c7666d156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 88b2ed2d09f10b4866f30f8ed2457a631ffb8515801999d77afa281bffa84862
MD5 a8dc191e2f15c7d98d849f272e703827
BLAKE2b-256 9ff65a34e82b7e2cef3cf63fbebd5951529747d4f220767603e84e3fd30cfa2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.61-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.2.61-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0482b0c0ea4dc037dbe1b46c5cdf36e2450b5c0ee8541b6b99ec6711e1b6a87f
MD5 b3ecc0c04966686f7050f5448f82ab54
BLAKE2b-256 e8207499bc635ca14b991bf6f4842923e725988d7da41d384d05ed054f1bd96b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.61-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9578c405d58f3e1abb3d16e3da3ce842818f0e831d5038d0a0a261acb7f6d87
MD5 42ef0833011c7ec66334b1595861d4d7
BLAKE2b-256 0100a0453b1171d25a11b582ef5e03811cfddbd64edf4705f86cf78d3ee045a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 013bc5fbfefcdfb6c59cfc5a9bf86bdba567c003da103cffa1ca407f5a7863b0
MD5 9540e08022e74207e546653383471c10
BLAKE2b-256 91b83fba6f069649973a142ef221eccb977dbbe6292b5cdfed9ae07a055d83d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.61-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.2.61-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d199a5b288993cb474b9fe26207b0fa04bafd18bdae2526ddf2db8aaff1530b1
MD5 bcdc5415ff6f3ba59a17bb89be2c5e7d
BLAKE2b-256 4cedef43515925f94fd296b7e97c8cc71490c45b636fca3925e9d8e5b77c1e43

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.61-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.2.61-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3afd510e5221c0eca121a9dbd7c963d26bda9e48d6270b43f274fb9d4adac5a1
MD5 3d877f916caf29b5ff5af899f59228df
BLAKE2b-256 8650f7bee984a43969d5b05fe2073ede1d434e5f7bec5c18c7c2b5d276416b29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.61-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c004873096dec61e08114a63bb4a510b4c9f33cfc2f95d36162762a1a54e29e7
MD5 c201bc87c37a8d806f37f82aa5caeaa4
BLAKE2b-256 8b647669f86893253d3689c7f7a4bd293ae96316264da03887fd60dd73aaefde

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