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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.490-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.490-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.490-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d3db7083067e69dff9ca62cd332fd56f895bef6e522aee4ec14f3cf5abbc3ac8
MD5 72e5d0f66cc61b0a3ad0b5bbe771d66e
BLAKE2b-256 27c54b95af17c20b390ffad910fff805958dcb748799f34e517620bcbb344267

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 764d10458ef0d182cad2a7c783e6ccbda8775a65c7b8f9a4a8af50d31158ba9f
MD5 bb62677d15ebbabdf1044ddffd01d733
BLAKE2b-256 58d8d0ad403dbbc350d697a054216f8da83e083b6dbf7860e066536a6bf71f6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.490-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.490-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77480127e66ee53f5f1b7ff6a27c733157f25a12398d831dbcd2261674b3fad2
MD5 209ba86bfd89643e17be951a5b3af390
BLAKE2b-256 d76837b0e464c54c282131b9546a5c8cfba20eac5f48ab582d0436e8df4a57b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fa35a42b564e30f9d3c206a2addf21f124bd78e741cb1faf22f2f139b75d72f
MD5 1ff1c10aee0a6a77200e73c971adb6bf
BLAKE2b-256 4de7c910764abea4654316e60cce99244e69dd68752cb577601248811390b415

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85ec6abb12ef4cd04db8b1e30ab92106cc240be7fac22447ed422830b7f240cd
MD5 299df254f5f4c7d23ba5bded76ab65f9
BLAKE2b-256 0c8c71c6dfcb09be26f194bfd3a19f527bd7b1d3a44128184dfdce8294292b2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4cf40ae0e762b8fa3266925e4349a2fe3200d6b0ad6455ef33912505807f022e
MD5 e54ac377219727f9a17b003408fe6606
BLAKE2b-256 313169fbd6cbd9889421bb6ed78c2dbc241e7949ef41094cd077f5cdda639c0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.490-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.490-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cfd2b136d96d40f1fffe7181ce7fc96ffb386526d5958846de5aa554594b843
MD5 f5cd87f9e4f76de78b8389c2cb7d388e
BLAKE2b-256 659a95f8785e08ae6f7c3d07204978b6323204fc197be0340ed910d3020e5af2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dad7689568174e93f57c4c8568ebe1640b441031cd30a0c699718fe4c385cc4
MD5 bcf3526c6cf4302d5111c6bea2114b53
BLAKE2b-256 0632dde63ccf13d57f950f350e3691faf72adee3a106aedd3812344577050f35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df024ff58dbe8950959ce2239c893c0d214a0cb2f5f90d702fddf6e2774bd39f
MD5 176a07e1fe2c8ad1a508181288a451aa
BLAKE2b-256 bca4b85529a2566dba4159df3b240446c46313c5d321bb68ee98c0be38fe3dda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b8086849af061ae23a2d4500e2c018117ed6d0ffe33bfff2c28979452c8346d8
MD5 ae1fa9e5e74df1ac9abf5a76621433f2
BLAKE2b-256 505de3adbcc58dace881b6383ed2f08c61b15462b81ba66ef3228bdc0326f865

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.490-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.490-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0d44db77251045fafd68cfdcbd02de8cae7da8f15042d52cfbc7004fc7dc09a
MD5 eb31a9ccac3413bb0de07e4bf742f3e9
BLAKE2b-256 8b80d3d8b70a6491fffb2ee88f389c07b25e6896eaf86305e45f13e82e19e42c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16835bff2ba76777241c1a73f0baa23fec7cf6a18ca86e42fdbefde7de1eeac2
MD5 af38fe4e9363cf2ac224be57c3992332
BLAKE2b-256 2951dc9d9ede7b1db9ae7faa86a6ee986c22464897c2f87b573a4a86e43a577f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 115b2a4d86fdbf186057bf0b7e8ce3a8b03cbae72bfb0165d76250cd29766a36
MD5 d7c27381f70d2367342c714fcf0030b8
BLAKE2b-256 a6fe6b728f6e36e7eb719c4d8ff50d7891d9dfe3551f2afb1b2b24ab874e7ec9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9cfe2a847805fee80b7e82cbc65881fd81c74c302e243131b5d0d6a4d4a0ae21
MD5 3cfdd033ad6f3ad095444e0b2f205591
BLAKE2b-256 b48ba3628c6a6987888564ee9ec7bd3afd7082dd0a9302408d155428876d97c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.490-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.490-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e12d42d7bdc0c254462cd94503d0257e4c20602dd809b3e9db65b7c61fa6679
MD5 5f2bd437e394a4f57a1a3724fc1efcb7
BLAKE2b-256 5aa19ac08b3db46662a90417815557713469fbabed162a4f77165eb3db3eae3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f668508593d88baec129104d738583fff072c86f583632e65d1d82ad8504f6b1
MD5 a8f8f5fba3734d123951cf0243c25908
BLAKE2b-256 8afab29e1c44e42145a76b512fc0befde37162db23e94815b29974f950733284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 84a38d8d35833092f19e5a9084b7d3e2fa035f7734bd7fde5470010518692095
MD5 6e0a5041ff61ee8bee1ab6b8b35c26d5
BLAKE2b-256 6604b61ae0174f13a5534c73bfc783cab2bd70a83efca9a3ce58dcca7db48f28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.490-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.490-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f75485bbaa8a623250b4e7fbe803d8eb184d3bc61f6eb81206d437c93f224bad
MD5 1981b39a89c8a916dd870ffcacae09ac
BLAKE2b-256 3b59c95472ebef29c4a7b6646d9515c6f28b683862c54643103ce5ebacbf1fd9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.490-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.490-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed1f417bf16a067320ca1dd0d73036cafeb3f917596b1e455bc2f3784b6b597b
MD5 484c8ce20ece82789faa6f02c9d82ee4
BLAKE2b-256 a8311d5ec93ff613a45a5d4a874bd723b78bf14a27539531063eaa0e8b027352

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.490-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48ebfd02a7d155ce50344fe0b6aeb85fd25bc830133e2f04b59398af0d71474c
MD5 8a207c93fae2ab7feb9c2294c8843301
BLAKE2b-256 f0b0e6b6600aa3b3b3876de99a25629ad444a4c74a5b39db5cefd2efd7b9fc55

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