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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.899-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.899-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.899-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6f7d982bf04b67512b7705d476db359ff966c1fc83bce65957c8c1ff9b1ece76
MD5 7350bf944037877a93a2047710f01161
BLAKE2b-256 7cf7f32f8220d0c3ab9440ce39fe1967a9b8dc3b684188956498abdf30eb99b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 490d516cbd13bc8862048ca48fe4ae356d61ef9224d71072fca533cbcd604eac
MD5 edd422bcc0150619dbd32670cd6c4702
BLAKE2b-256 6d1c51c84d72d50bfb1ed089fa190d5055266524c2b386f23a0f7b5dd8d98be6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.899-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.899-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 857eaeca2c7de84d1bd8de0d07131c371c959177aa32eadbe14754ba09d520a4
MD5 a74708165e4c6d0345b41f4a3c350cc5
BLAKE2b-256 005eda8e5b5fdecdcb4cfc0f55da66f04c84d1a0ad2b9498b5b4c5b5149b0e5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2832ccfad6be0aadeabaa9a4a6612365f89657b55f3e27969ebf7874fd8b9c8e
MD5 6fd3dbb1bcdae378e161d6e50f9d3e8e
BLAKE2b-256 9338e234cd014dd6906fd606e6249225688609663ae89e447b0eaedad31cad8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a97b98c25f3217e8441f853a7c0e8e0014bc6ab0bbc2bb2b7f5d485d83626284
MD5 a305497e13b7f5266e33a85e7068ad90
BLAKE2b-256 9abf63263988d7d8f6743ff955885b0a8d1a118ed8500e0e269366626fae990f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 919e4082c4a7a0763f4410e74e1cdfaced95e523a6c23eb21dc8ca5cdd1e5535
MD5 2a7e6c688e6414716325b71194d05ed4
BLAKE2b-256 56b1a8496018d98a11bec68c98311419e28dd333a1d7016e2585a40866243847

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.899-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.899-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c25f6602c01233c9c2542a25488dee13a0061d2ac9a2492abcfc8f88ea65c6d
MD5 542182aea11161783703f4786e8c060f
BLAKE2b-256 341c28115380995cbb2f274f32ff58a55dbf4d2fab23b2276ad02c4ca63432f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3768fbe15430ffb3b31203a22f5d5984d39ecb1e678201b8d85639701b8b95dc
MD5 0815e4d4c027d3d23d81c44fa55fd31f
BLAKE2b-256 c01b6b81b462fa90192dd9ef554545bfe595b8d869c1d1187e09fca298f67584

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2624248a96df202ed2eecc2bd8f7f195848728e6a552f91fb30976be3ada4e1b
MD5 16a41cb49a00ac12b91b10eb86233eab
BLAKE2b-256 82223e9f426f3939cb2a409806a495c9fb84201295a55cb2ba58e3c2a7b58929

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d52e74233769f1d60aabed2191c436bcbb52c360a957ed7b16029e2674542ce
MD5 c5ad6fd46be530737dc23cc9d622e27f
BLAKE2b-256 f3453fc9e054183c1ad00c4efacef47a1b8b680db1cef10d8ba8e6f543be768f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.899-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.899-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8c8fda7dc518fa52089087eb5bff09f794e2e178c29839e7a51a78d770b3e8b
MD5 39ed115f52e4b71d6cebf384327828e1
BLAKE2b-256 b7eea806b7bc12b98c1536229ef24abb294d69550de1289eaaf6be9992e81216

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2127d03e739a2eaafe2be4fe73f549c08f53f538c98a766646ed31059774cd99
MD5 9d8f0e5398b704167bf36fc4498feaa1
BLAKE2b-256 7ba32b60bcead4b96d0ddd703f488f5b75cfb8fa59c193db9219d6234d5a5592

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6c1452051a1907902570020dbee06733f165941c090706e5b0117590a1a77cd8
MD5 af78cef77419449623f26ee8b0552c9b
BLAKE2b-256 b9781428587c9cb1ba77a1c96705bda226577ea7d0c85e527faefc95c4fb78f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 45ca6db6bffc1a26b8ebd8455fc2d48330e8aa349f0a2d4da0b9966e08cd9538
MD5 7076fd68d815a4c403baee994b5213e8
BLAKE2b-256 0434e086f1aa8bfba999a6fa5303a7a5ae117a007bd4cc0d42b6f55424edd941

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.899-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.899-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 640ac902ec7f571072cf488acbe862017ecc2c5d80f1bf401c8e277c236f7f63
MD5 63253e45ce87d81f75172e9494a14302
BLAKE2b-256 203410b9fea943351fecd5c26e62c372a35da014957eb586989100cb1b975c80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4e71eefbeef1713802a7618eb4bbf331e053f81e681edf7ccddfcab6632bf92
MD5 3841d10be9b28312d4b535c6952c1c57
BLAKE2b-256 48b836beee9178cbf847b0e249b8ace6f1516239ced6297cd885679dee9dd5e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 41cca1d58d098dde4e60539170abcf65b2ba026cdecba99c20c0d88812c22db8
MD5 3ab52f966b49591c052805012ec95707
BLAKE2b-256 df285c71522a4eb391d0e5dd143e5e1295c14500ee58f9ff5e27ac3ae2ebafce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.899-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.899-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 60f7360e216c7931f87d9259cdf7398d55ad894d8fd4e51b41f3999bfd6fd43a
MD5 052e740c3b0eba6923c564ead297de09
BLAKE2b-256 40ff59460a120be27378dad363b3cff2b4a9e62d8b5ccd2180b3603c4f4e7749

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.899-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.899-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c33b14dde9aeef541ec4dba39d9add1e9e5e63b58aeff2b2ebd13a43ef859edf
MD5 92c6e198c6e1d5d3d87168236e4d61b1
BLAKE2b-256 a168a58d2255636db9fb5b17fc1def47f8c7d9c22a96e145a4bb0331b4262a69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.899-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb7fc4856e35f00eb01f34fecbe77a29bc7ae4670022d5cd9a7228b8ef6d3a35
MD5 e5514b1053789cf52856ebfd4e7df3ae
BLAKE2b-256 088da53b7f1b6c78f593d4f9ed9023c9a6978e458669946feab3f55d7fa0345a

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