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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.462-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.462-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.462-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.462-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a1a02728840651aaceea9a72e6a6e09322eb74136d0bb767c9407962badf839b
MD5 8ac841443d6c0c321ac8130423946cdb
BLAKE2b-256 47b90c81a3504e55952c6e47dbe35fee90caf5d711f1f7cfa85ef194a5c72724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-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.462-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 80de34f2651c8a9e1fd73994a4e9aeeb2203ef3efd675205bc7d206d67c0b007
MD5 00229b936fa580823ddc86d15087cd44
BLAKE2b-256 9bbb8b0c4c83c79c9580c972d957b10b88b8b21b5a58b0f0b1ee93a223fccb72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.462-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.462-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6092d937967b4a9a36c885bdfe3fb90ad9fcaccbf823e63912dc0401146d660f
MD5 0f4610534a7f068bd34ab97783998953
BLAKE2b-256 43802fb220cb571672862a4b0cd183dcd263055ae5a59d092a774d59447626b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e76cf3cdd06a7772a0adca1d1dcc672013be09473bee5bf440a4fcf9e31a667
MD5 8b68658a4d86e1ba7b49e8c51111c0b9
BLAKE2b-256 e6d809f7b712e45a9fe6b0f7cb7ca8dbdb0c1e60d8ba9270679cc4c5964067fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 affbb57931a61508d8d0000fea6adab1fc4418554d7e899679f7e6a2bf61fe7a
MD5 1cfafa7e8b532ddb4552f15b83c61c22
BLAKE2b-256 d7db84c35e19fe704f627e252c4626fe68dd8a9138fb2f762b08afe21041f753

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-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.462-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 109d5d71d741a87ee7bf29e745721bcc6fcddfd6da20016de5059a8e0c229328
MD5 4940b8649245b386da7999290586709b
BLAKE2b-256 e76d73deb333d4ac76d6c9d2510b5e39973313a2e6aad3e464d48cef0bc2ca03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.462-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.462-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3f61456e3bd54f3bad16374172bc160e278609007802230b2b93c78c8adc1d5
MD5 9fb122dd21c2bde4523c77f491a1b0b2
BLAKE2b-256 87249fd0b8ac577fa61471f7580af128f70ed8f3d5c5b4531913c6b4824bb0f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23c6f15ee67c025220e1ee73b4795c9fc022db6d9a22c74c079f4108bcb55474
MD5 1b99d7a334679af4981c88c5cabfe4e1
BLAKE2b-256 8e88a6fd52826484452c8b3ab28e5cf14b339bf9fe62c5a47992a32ddd243fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 21463c0e09b69adc3c5fa2c26a2df10510de7eac61e1b481f3f82ac9562baeeb
MD5 c142b31dc199b7d8938c8de539533961
BLAKE2b-256 bc90adf62ce7ba194cd98e36e56cd58c04864276840612b83b4e3f65b7e4cc86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-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.462-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7df600734842f21637e900415a7dd26191ce32d3655ac53f4b9fe4f87b9b27dc
MD5 fcfa5c1e59dd8b429acf1d61c0b45b76
BLAKE2b-256 0cfa47d69cc79d1325a02336ac3f3e7d096a105ea99cc1062401fac0d49bd69e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.462-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.462-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ef5cac86477514948df35dda7657ece80d25afb88b0b5c09b9211bca0b4ac60
MD5 e3786f140d4ed1a13917b04a0cca0b3f
BLAKE2b-256 d2b154b67495b4734b98cf6fbf3b3b076e46824fb5b0cf2fafe072deef570920

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9c11f215fcbb9cd825dfdd531d13b6d4506aab42dfd8f78bb46c253846ad2e6
MD5 5056f4496fd359c21de39758dc7ad308
BLAKE2b-256 480f14c60bcea33d2181d6003ddcdde68a27094c4a5852d6fbb2932836de4cfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-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.462-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c103d96b1a653ecba033cd8f0e42f559f66cfe23969d886994ef5a231f8af141
MD5 cc070600cc41a05051d9544e8fd19324
BLAKE2b-256 d6144e267890b42c0003a5170b7126ed191acbf7bad41b735c5ad8b1f3f4d525

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.462-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dd4c3b8a5a7b4dcdb26f4cf8bf542a16ce0ecc41586053166e5e84e308527663
MD5 3210983644366eafa6f7b27b83c24d7a
BLAKE2b-256 4fe50ffabd23d6058e62ca43368f9da4f11774d780837160af5503e8f0e14ff4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.462-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.462-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12ca0a8363da85b21f1d7597a19250341a0733b51e470bb80557893d440b404d
MD5 5ba76342cfb1a730bc3594a35c5db944
BLAKE2b-256 bd9032d24f23e3be63cf1c33c694159b16559ef93c901793908dcf2478bf0f20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88a345604375b8c2e0c1440dd9c422a2a38f81f1cbb444073d3b164dc63ce6fb
MD5 c6ee1dd733c0ee65f18ebd5aa67bfb7e
BLAKE2b-256 3b91751e7353c175bc84248ecdd852e9540873dfc70a8d5b9bfd2d9958f647d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-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.462-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3e5808f3350d8ce816850f91fae47f843c15f046dec9e791cc53cf8b618c5610
MD5 83ca324d25ce8afd21767addca1d5c5e
BLAKE2b-256 331f59cdd8918b5c0315132f87cc6b98bf0940834b8a1a8d5b2b0c6df89d062a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.462-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.462-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5b7c7bf3a28b6a74f58252f0d95c6bd546c487ac63ad5824a708e5c3b790ee69
MD5 4bbe688cb1c375be779f633ee4498ab0
BLAKE2b-256 55f2962292c7533abf8c2519f6f250cf6cb590ec92cf4fa59881e4dde2fb4486

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.462-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.462-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d191fc6a9d97b087c54608942588d805153d5646ebb46554471810c3af81239a
MD5 8e1391816ead75510ebe1cc40630635f
BLAKE2b-256 f68b9135f2d8212a1b90767df9bd69643073c0cc315b248f43bd0c550c69bd5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.462-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 967ee80d9e7084c10eb7297b7c99378e78775a1600e258e10ad2a0c68acf4917
MD5 4d5d64524b08e6b732de20c2321c45cb
BLAKE2b-256 b7e2c015012c806dea99d3d0291496a10dff28a7edceb9571bfa68d7ae8d4293

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