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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.679-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.679-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.679-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f2967d05dc76fee7cba3b9d2dbe90588a40cd48cbc3f75505c666d10ec25c761
MD5 e6307769a1cb71442866851a99825025
BLAKE2b-256 d17f8146e93edf0e3d59f3533bd4b2f4ced7b6fc78b94fa381ec671568efa1b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b364a4adcf43a885ed425afc90210c0dbfb2535f66b0c4772acfd394fb1387bf
MD5 e587c595cd872d85059261cae7c6ea60
BLAKE2b-256 87a093f02ad7c7d186449f0123493139e060e8a7ee397a450aeee7d05d45d3ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.679-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.679-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d56b86c2a00d7a7a9cccf94605d61b10b4e59ba96658c26f47e0d02be8939e5b
MD5 393ed3d69f896cd624b26c55bc38d86f
BLAKE2b-256 0d75b6fc4d8cf3733cd7802c1ec0c7a40bb1a50bf894ebcf5b0d71031023e626

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82bee01540c6d4b9f7f56e2ce4249eb51d67ccbbf4d733cc3adec2c87525f5e2
MD5 550ef347b8a154e41473ac69bbc9a517
BLAKE2b-256 d5a629383f98c4379e84d316fbfeaf3dd17cd78e43292cca3f19a5c8ef11d267

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 11eb9b4345260d92cbafc9daf4d595bbba5fd5b6cc5ada430a8628b1b7b4de1a
MD5 99fcd7875db098f9060ae399c6e452f4
BLAKE2b-256 8c5e2284fa16cf8e9f4bba23553f590fa254195cf2814696a6f8189dab6c3cd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ec9212154d6c24f643388dccd88dc006bc180a2bee5093b4d4137fa359550f34
MD5 95e98328c26d0c9e5281ff2f597d7733
BLAKE2b-256 0470f2a5ce53c16ead7f6d0320f7092cd82c3719d39c4fa216cfcfe883f1eaed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.679-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.679-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b83d2b246474b12edc48461e3f7715332711405ce9ccd3411993190a676e2dcb
MD5 f4c399642b2fe7c14babe409669254e3
BLAKE2b-256 9e5c3fba1c8ec93728f3cd14e00d0f7c45c02087d0c91231f4fe086e10f3905d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be7b2b218cce5d46961a5a8fc72949498c5ad79de21af19eefa358d5e24011ee
MD5 12c866c74ce94e73b1d5ceacb70f1fe4
BLAKE2b-256 1b208e6363008b6ea624e12fbb013ab5204fecef18a6c34d0664ac346fde5c88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb86e8b60d09a515bc06e0094e6fae1101fb073c18702195b4e818f70b4b1105
MD5 7874aec7236272e994897926651b1237
BLAKE2b-256 1093b6bb76b18f358e4c270534e9e70486b0532e8dbd40dd66e94c8249b72702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 69aa1a4059b829e17196d152279da7e9e17aeb117afed952321d4db61354aafc
MD5 2fb998787daedc95d6515a281dcb2510
BLAKE2b-256 868b7adfa9239de94c75932cddebe3830500b11c508a5f61ef0c24286f2616c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.679-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.679-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac38f0843e5c6364ccae2e89986a4a328f9941325f88a60a9947143cf0cadf0b
MD5 ac1a898ad89eed45857a51218fa80b1f
BLAKE2b-256 31dd8675ad4050514babfdc450dece36d2b806c97867cf7013a601a7d8e305f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8758a4a7458f721dea9b6c89ae11e0cd7bf9bc02769153c4754d3035937c24d7
MD5 3693653e1c993f24827997a9ce230ea0
BLAKE2b-256 e8c702468ca203b99ba451f2cb1b707d4bc3de53cb7de6f22d62da5ec9baa814

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a2792c1bafddbf8753310e082a5ec65fd6755d890ae932d118b6587a09fea16b
MD5 b140677b54b4d43fd41b82732acff1da
BLAKE2b-256 341ace8fdcb3eaa0ae86c4f2d210118a1836c6167f3029875ef961ed451c0620

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b6e2b3d1b2b1a1a0c880359a6a427a01becd956c47174bf2b73a0620f17dbdca
MD5 43c3336f1ebb22483d529de799191c55
BLAKE2b-256 cfddb7bf1c218e12de0b563f299906f2b57644edac030ebd8212696cc160df47

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.679-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.679-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b945f58b3bbbbf295ec3c63b7b9b049105f484467263b0c7fefb29db7df775ad
MD5 49e16cd518b8d6142b609ede7015a201
BLAKE2b-256 618a4084f1a98d7e335713fe02f4421f78ac26f891cd6729a458ab4c926fdc9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebdfb62d2962a659637830bbb6c9d5baf451a184a4f16f0f550c07caf1f54103
MD5 e4698adbe992d17ce9a6a38c8aade484
BLAKE2b-256 810a32cc84cea8e9e7df353f53cbdbd2d63952b69a52a5752732c39d6287f1f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 63548f46a095066c9fa59d63f52fedd479c83a9686e3641172f7b304671e7146
MD5 bce10a79a2a74619895403c52437ec54
BLAKE2b-256 7f6f1b0a1912ba42e2e788f14fa1db92be3d9ccdf0ee5e20b4fad208195bacea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.679-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.679-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bf92855d10287f354bf90b8f22ffc8bc54b053d5729cb6f3a631d2fec8d0e71b
MD5 0086d64ccfef5bfd878534a3ca3cec8f
BLAKE2b-256 fc432646196cb5b6e8d013310ead8a2368af808051f3c76d1b88aa8ef57320d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.679-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.679-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa10136669ccfd1ca18cb5e30cf5081e6e79a98b74d1969e4d3640bc178cb0d1
MD5 0896079cf4847ffd6f7edf5df1897e82
BLAKE2b-256 314219ecd5e6098f55746011fa944d6abf121e9fa1ef9788aeb1be5254a4f214

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.679-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfa0575711b92715fefc678807562db1cbec04783028bdee8a9298e63ca2c249
MD5 48092293c78ffb377597d4b5b49fc6b8
BLAKE2b-256 f8acef15ef1a2c3afc37a33f9c6f89f63581107619bec8e5ef4f5e1a185ed561

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