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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.226-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.226-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.226-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 67656230b771962be289e947f25a89031f59fbf7612e528108831db153de1ec8
MD5 29ed4599bdd5093a9cf34760e03a5e8d
BLAKE2b-256 efc49b48b9c4225ccae8f1b755a237e6cdda67c496c54a9043cafe07f9f9006e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ba44e9a05c35564e409b68b180e637143f6c6b42cd00acd1c56eb3e7b639311f
MD5 c5329eb7303005a453590e1eb7cf2485
BLAKE2b-256 cc595e4176f245ee6bd7ab15e9255dc498987dbf21db5b74b7477200b64ce231

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.226-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.226-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3448bfaf68d4a1d52de5e8a1ad04469dbaa08148e7cb8b0596fe5422e96a5059
MD5 7d851cd90203831da19a973fd841554c
BLAKE2b-256 60c7a684077cc48f7d7ba786e368044d4226052fb50861ac236c7dd7474c814d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6425243223530f66b02655e8b1f49f22b574ccb3d5ff9dc5c5eba30fc20e096b
MD5 fc322a85daa872070e40a82f1183d7cf
BLAKE2b-256 59844cb875893aba0f9ee592b8384294f8c743bd0fb0f0b02272d3bffb4feed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 034cbd2c78c854494fc00b780b4abe1aceac8241ef122a4d7e6cbd43a771fe22
MD5 117524e87e71138abad070493c913b47
BLAKE2b-256 414364091817690ad69b7c68a3384a3f4a6bedf334cebd40fa2358e215f4598c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 437146235a0822c49ffe0b8c91d2a1ddb2c56ff702b7e13cf63f07ba1481ab59
MD5 056f5cb914ce48632c1d11cd66a7f38b
BLAKE2b-256 0efd7cb79504a5fd80bcbe73ffc13b14f90e7c0691513840850987333c4f44e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.226-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.226-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f732e18e9e0a893a38f30e7d7261d449a6ecf4688da155e5debc0689933fc23
MD5 7c150a9a249137be306b80bab9c7d977
BLAKE2b-256 9900b6455b3c22ed33df781b4a54a047180b59d884a52443362a61a1360e726b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5ba6476932babc688e24109bfe9368d6dc99d89b8fd76a9c2024724d7b67e20
MD5 7a75706639fd676805c82527afca6499
BLAKE2b-256 8fa41ea60dffddd3e76fea5c635710bf822b264518194eeb4b3e51c7aa63394d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8837559c532ab85922086047068516d0ede89c4679dfe8e98694152e0a782d91
MD5 6d2d31dcf793c5f3b8016012cc3181da
BLAKE2b-256 f6fe2e251fdcf7c6136c921824a918b1844113fa5225848c151a6be9da674179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8388ab2ada54b1947ca99584d843de9973ed618cc9198717f1d8117304ab22ed
MD5 baf3ed2198ee52ba28b08b3900ecee74
BLAKE2b-256 703b4b1e5f00d869a214201445fbf0e27aea4cec23a8138b36949829b88cac5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.226-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.226-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0063bfe058151234def64d5f158e994de12c70664b2045e047dd08b716be620
MD5 3e358b521616e036134f6af15daf3f27
BLAKE2b-256 a6d26417e3a74516074f97eb8943f1627796ed857536d904f21a09ac7501e57d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e032e706cbe6c5c4eb72982b53e51724326242360018e3662c9393d9ebcee13d
MD5 61e758cf8fa3905c6a16be6cfc5e75a7
BLAKE2b-256 27216955753647f871a4f243a2349b1ed12ba1f18265a83fa05b99afddcc725d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5d93665dc976d2651c3089371487dee24d689e7f522e79e4918ffeb140a21c06
MD5 32eaa07b88d4311b034fc0be48ce469a
BLAKE2b-256 9e7b110beeabfd0c186d026aba98a51db00a21c81ca348ae5d60ec65e26178a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 479c0b0750e17abb6dead2bbd5e053a3b98d7782c753eacb09bce3b641202125
MD5 e4a008b43301bd74ffa6bc4a90c1b25b
BLAKE2b-256 16d2ebc5cae00c1d7916b0e95691915fa4d3e4c555518a4355b57b6727709820

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.226-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.226-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af39718bae6ab876530ccd037684c70d12a9bf08cecd949225870e5c0ead54b1
MD5 8a7bc152becdf0b4e79a2b7f7afe2bf7
BLAKE2b-256 6ec84e8c386cdbae402696fa672a1511224356ea5d2a991d9dcbdb3cc37db1e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9502e1691fcdd8373f2987a4e64df993d6f8a7681915aedc4aa20da509899d3a
MD5 4363d6c4a751bd39bffd31032b17fa04
BLAKE2b-256 295e47ed6e47ae13c8fb8c6044adc9da1e441b9470e000226e2c38f2245994d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 75b24fdc9b955f0f36f3fa36567f2c56121649652442ece9f84cadee42041dfd
MD5 d3c2036e99dea9daf37b114bb1bf99f1
BLAKE2b-256 cc471e4cc14ab76bd144b70d9fa0c737984ad08ae1dc10dbbed06b8277d45a65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.226-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.226-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a6ea4bd00aec3134f92e50509cfbf6225d22f53b46eae3dc7f5713cdd810bf24
MD5 67792f431e0d0cd38c79b21c23ab2954
BLAKE2b-256 167fd3e42bb08915ea743bf2499d3f44286126edc76c62af752be1e0a5658bc7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.226-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.226-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 073359a70760fa6a6a88e279d3a48d9823f8a2ae93b6e0cd53560f0941368919
MD5 397461a26d4282bebb12d6dc3ca479c4
BLAKE2b-256 595eb7b8b2db51f4e840c822d420688652326f80e2a6c9ddb92b214ef4c79903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.226-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd80e57ebaec0e9e4515a5c2f0022cb3ad8ec4a7bab363ac2384062d6a357da5
MD5 a3cf8d712d004413ac19ab4d072733b6
BLAKE2b-256 6529a20f0fda39c47855ef3bcd55e923609460b740b523706154272f608a83e5

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