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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.493-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.493-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.493-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 473700b1db4d0a1cca31072a1e387905a302e02d4626ad4c0ca257250f6297f3
MD5 11abd370f4c183ea9a6758b54b822495
BLAKE2b-256 8f3acebf6a97740cdf4905fa4cc08a4be1ebba5ff440eed43a12ff949027dafe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 71e4bec891f0ec15745c7b2ac1a8f2a37958515e969995325559e774563df4fb
MD5 c8d8986bdad26576482708a08eaf3418
BLAKE2b-256 573d6e3c4344a74a88dbe5a79133f9220c76e8ea441bbd577d8a450c206cd565

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.493-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.493-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63331def88e50ea2444d5e3d64996a6e20a288ca3c643fde1a9765c512402499
MD5 9964ddcce5573fa0a774d151390e287f
BLAKE2b-256 963e616b1f1175ca0b770a933a3d0aea45b0c6bd5f2b86aa008ec324872d555d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3949c23faf3aa9b96a999fc75cdd1187443c744fcfb0faac842f74fd4351b3e3
MD5 b7f27ff9996a5c469c218d86af64f28e
BLAKE2b-256 2d57f3b1f16ac85acfac61665d313d2ab645df1bb12255553da3bec802b5a5d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf47174b1459e7504d0d17f8de685fdb490626dc4835b2f17e8169ac2de75b07
MD5 e136b7f44afb149234692071a6e71255
BLAKE2b-256 42e5255450c9d72f66989dcc63a541fdaf46248d5bd137eed1875373b027f77f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5ae5f7be02999735520b9badf227fb8ed035da8c9ed6db5101321c1ff3cc8291
MD5 9bf64fa104f2031104e90106730d9370
BLAKE2b-256 8a950e899f10afe06bedebb99cef79631843b248a21d73b845a3b13093021048

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.493-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.493-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec21936de8a550be833abdf6eeb6f85af7e22eeed3b384fff9e622bbb154fe11
MD5 cd543c6db350de1846af108e2ae2c7b0
BLAKE2b-256 3dcee916e9f32cef82f38c503998a400e9b9bbef7429a966bdc579f0390aab53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d68fe54bba8ae399c895615fc1b7ac17bce380e6607d1463d163b6596d7620f3
MD5 d36836a89a6f02eef251e4a1ca228043
BLAKE2b-256 f91324784623db9c6bee781bbed2a8e329cab5b1f11218f433fc0f1b57d1b317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 50b0c5ec09e38be05a04965c843b22dda829e479b9e5e79701e50b17c4603ea3
MD5 7fdcc4383397281059e69ec3557f0b90
BLAKE2b-256 cae2efccad0a14db5563e056fdb8607d245f38e04fb2f5d9c1dff51e97bbd313

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 68f73913d3ad4a267fd0394be125ca68d0829e92a46b52f46665b7dc3af66387
MD5 09c90181045c150e30d44ffea07018da
BLAKE2b-256 cdad21a590ad4d148b159d15022a795e8c65b34d87a8916bc5f98c7873eeeb11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.493-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.493-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61932296460339cd78c6d5fbe10b4f2a6ca2cc1e603251203b2f238e977ef853
MD5 c1db1155a8153d3cdec7be3a79339d80
BLAKE2b-256 e93e10e061bccf606c24051627c2f5da987a2e3801ca4491db99fb3664c27bc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 270b40b53093ddde4821cf31718bd0adfe47c475f98e658788846d58bbfeaf6b
MD5 bf4b744268c231d4959f61e82c4b38d8
BLAKE2b-256 ffe00059443e894e7b5c2d49a5c26fea86e248d8e84e669d9c0cf7e69c5fd493

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a295f151262eb78912feb9f87addb6b7612e8d675494483412c1c74d07a08ce8
MD5 b20d156fd0e183e4870d02f152d522b4
BLAKE2b-256 ddda96057fcfdd3709b1f153eca5bf7fe599ae3a42311775d63e2b6e4b6b49b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 366efa251e58c1e9f386c97afe430b492ce27a06d2eb76af24dfeedcda949619
MD5 c083c8b17294057464024f6771c22038
BLAKE2b-256 b4559a9ab9291a8e2c704cbf879b9ec241bababf1dbb980905994281daff05fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.493-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.493-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7a4c39fe3a992fc4976fc81bcf5f8d8def2e4ad3dc9b037530e43b1ed5c471a
MD5 7212c52117aa8f254956eb5d7bdfb08f
BLAKE2b-256 ac10e401e2c1f41f2f8485f0fc1ba0ad3b927f0cbd663585dc9398589fae2061

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86c8654545d51cc84aed6716a14dddfe8cd0e119a7b3932707e40fa19c69071b
MD5 f5378b36b183f2def9a97c2e81eec3c9
BLAKE2b-256 3734bbc4d6eaf9f3b30fb7348df7a667eccf418b195541947a47d757a45eb9bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7f23e33570d945d762f2b4ebf14ed8015f9e3be93063d277c86eba9063670ce1
MD5 51c6f8e9f1a0b846aa156b86b589ed08
BLAKE2b-256 33b7e2c1ce622470049bdeadaca213f816d4d72d180badc652071e2b8b7973fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.493-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.493-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c4c7c74e6e3d1f06041e8133dbbd1dc4c9f41d6a30e34291270218a139080bf1
MD5 6b31b06c3c613695b4190d1dd7495aaf
BLAKE2b-256 8344b420de17b21ff1e9d6c9888ff90d2fe5fc43f56995dc986bf078e68970fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.493-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.493-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd485eaa53651d4fcef407f70d41b14a0fdf8b651fefcf4072345b75e47edfbe
MD5 05d2af3beb3b67bc8573825212c25845
BLAKE2b-256 b5bfbdf800be6731b518174bb1a0ee2281d0902046ab32661870c018668784de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.493-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a822d865832d7c2db6d4b58857c53d45613b9e2f7c45d60990bfc50e6c0a44cb
MD5 32a81409459b0cc03af703cb0d258824
BLAKE2b-256 9fd9beeeee06002de1b1cead612facfdd60eb8267a22a56161b464ef2d69e54b

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