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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.117-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.117-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.117-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 74714443ce2bb36c16d4edbe3b5901294ab66fecded21ad519514fab481531ef
MD5 a3495deddfed8883003a735317047b9d
BLAKE2b-256 ee8d87df1801243143e7eb9ca843b8bdc69211e32f3bc3a6e6c5e89570d1f02c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9551754e70254a4b4755bbbf383f2f104e7c390162dc8b6499857440c40722bf
MD5 9383eb6c00c493a20272da135ea85571
BLAKE2b-256 da280eb0f6e5f4779204d23eea53ca9157e75f0ae49734624c6378e2f7a01436

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.117-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.117-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b48e44fca4889ec213730cef86fc7067b9ce6cff185e03e087184ec34b04c6e5
MD5 820e6373b4a2a8194c9ad6f204cf481d
BLAKE2b-256 bc26676aac61f1956277d31da33f08481cafb7d5843fad0108cdda0f9beaa3dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 381f9df5200da8094e4979bfa708c6ae08d74296d512d5cbf0450e747b206db7
MD5 e21ea17c4b773be1e41b2e514023a0a0
BLAKE2b-256 7101165a5786d169d676d2451cc33d4468390ca051dc5992f5038db8b3c47c85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dfc858d3d128f6e63d2a082374f5276cc259e8c078574d5d9d21e5e778dd6252
MD5 f5614ba8546deb49e9ce8b14c2050593
BLAKE2b-256 ca3e1c46d92422b4cc2b627f38ffadafdcbe47365cfa4caf53802bb8f9ed9156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 306c712ebaf759706d803260430bf095081b153fb560586780d4e07542c121a1
MD5 5f5ec2feebdfdf95d4c6ed96ee0a6416
BLAKE2b-256 bfb739e6fe9b9328c2dcca1b465822fe99dcb0c3393f63c835b87989a92c0aef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.117-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.117-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 038c58298b022d351f7a397625db869d125159c1b15b73b55c8d85922ed5627d
MD5 1ffcda1b513710c6ee3662a18e75d873
BLAKE2b-256 ed9aba686b67c5f576b174e4599078384bf23eff402eebb4b764bbda73cca0d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1d669a6ff0045c9099143ff8995ad7644d246d890a8c882ae3d89f570b2c80e
MD5 bd4f4f06675859ddd98ce1acfee2a503
BLAKE2b-256 25876c2f80ea005849de208cb50afe54717541afb2987b4fe73354c0209817f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c7b1131fbc96f100954b021e2fcb9776f6c9517ace6bef1796d237c6054f8bfb
MD5 647b0ed48d6c3b2aec470a962b95270a
BLAKE2b-256 b776bf5e85db12f004149408ae6299131e68ed3d0022dbf3f2ad0145e1a373f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3cf402f0b01c2c62af818415076e63358070670ffaf762622dfea8c1e39b948d
MD5 577d0657b0ecf3cf6ed8f877335b9d4b
BLAKE2b-256 37c26bc930ffe2734f25b24f6776baaa81b347640695689792d8ed5d5d663f2f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.117-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.117-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e859dba0587e904abd99ec9df2c3b8f7be1e6097410a95c06376f2fd9700a1b7
MD5 8b626e360dc48ed337f43a5c4d48292f
BLAKE2b-256 4be344ca284a3f629e7e7bb9317973490cd99c220d04360afa1e5a65ec85b4ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c705632e508297eff4c9105ab02698964bef4c153828c5cabcd7d78804026ca5
MD5 6e9a01e12d1f50cb4262b648cdec87ae
BLAKE2b-256 10e132e99e0b33b68715fa63d923481139f5d8891af8a927e993e321a00579dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 56f09e5020cf50d46d1f0016fe92023bf461d7076c290ccf261ccb575ef9348a
MD5 2ef1f2dcc7b2ac18fb47c86dfc2ba436
BLAKE2b-256 6fb4b0c7756a97965ffe6afc8a56030816beb489a11a2dccba0fb42f097c79af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 22c2d973ea247d3572cb42554b568745252e4f40a4576e80540ea5e5b5caa364
MD5 8450e2d3c2e650c4e89fce92cf650c97
BLAKE2b-256 666d4caf96d12c13698b8a1783b5792362751f3150795b2c48bc34ff21d283c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.117-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.117-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5585d3d55ad5649f2391b7112c51e20ab0d0caf22676e5db5a2da373cea84179
MD5 80181ebd7a49b5aa614e42d259810399
BLAKE2b-256 320a903d578e4618524e0e244a67ab06d56a028f5500b999b6aa859628267ddd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e611b4215806970bf43f036900279485730e88ca66154c3c79201fed48b6d840
MD5 d86e5d04935ef0fb48314c59e4c70987
BLAKE2b-256 c96e41908a80b4d1ffe77fb38053695c7754d0f5d38fde1200193a3682b62f0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 01a493213e1e8cc232ed8eb5ebcd2fb5c7355c13490d9bdbc8655fc647098f51
MD5 a108676bbfde02384cb8a28b6dba5c3e
BLAKE2b-256 f4a0ce79399fc61681ba92531e6770008bfdfca707d1bdc30d9b8cf408372520

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.117-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.117-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 88cd2e4a5c79b3fab02a6674891da69baf972684038a8b3d5bb37ecf076639f8
MD5 48b59acffc51e7ffc72f38cf58a41235
BLAKE2b-256 93baf29eaeec94e1744871240d52ada0552bec442a18cb997112ceb27e03fb21

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.117-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.117-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ac954c40a188a58e3893813d6ad876a98025792ca90e2912434f40c964f053c
MD5 dc40bc356b1cd49101332da07a4727d0
BLAKE2b-256 cd84af2d20394ff2fb7c4be8dfb9df79da438f4e7ad16e5891daf57191f62a07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.117-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2cf97c1e8efeff8be5cede4d90cef27c6cf04df75dc163cdf7ea8dbb4aa70b91
MD5 22d639d07b55de1e4240e9c4bf814db9
BLAKE2b-256 9bd7fc8d1a16f23a1ab8df526ec47106f8a1ba71d8940f43a91bb15e1b8808f4

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