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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.351-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.351-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.351-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8b00bf0c5842644a2562a925bbdbd312658680c72e23a306a0b954603ceb3d77
MD5 b536aba833ea93f92b893abd5c23485b
BLAKE2b-256 da54d605d2ae7c1d2491f884da2e7a5d425ae9957a14bbe20f95198bffd0b8d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26396ad1249a9abab526611d3c2de17f75c06aad54cc5edaeeb69206c349285d
MD5 54c695d80f7f07a46eb356deae21b189
BLAKE2b-256 728ecb25c03a5cd03b8620be3cb93b10b8d80a81a171ad29a910192a7ca15c56

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.351-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.351-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84b7e70ba0940935a056d2cc27aba39df598a713ea302696f7222663a4e67ff7
MD5 22abcbf142322356fea5f9d4eefbc07e
BLAKE2b-256 4552133ccdfc236eec52494c168fb05f21569276a77cb637a117836ee68ee3ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aaa2958f784ed8b5364e4e952d765b315184b9a743b50871631dd438ffd4bb4c
MD5 0ed945204e374706edb2646f1a1d3369
BLAKE2b-256 1ca937412d0391bca8cc55ca94b75a73ec03c60a981182604b44bc141793de10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f40f11569a11105466ed397cacb686f69d5929dc7d6535eaae99f0e7d60d329
MD5 98ea10bdbbb8ffc95efc0547c7940cbf
BLAKE2b-256 da38124b19b9d1038b6eb7f90b5fb02d5f58c8add6d2a8c0b1cf198af13fe741

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b62ade70bc62bf0441dc17c5404f52ea1c865b71e2533a16cd15464bdbd622c4
MD5 2dde5978c59d3985b4923fc5e2e6d682
BLAKE2b-256 bcb3ae77e97f8a13b12a9ac80eaa8f53f9ede934a7b5ed36f681238a95abb483

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.351-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.351-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ede60ee498487f4742713f3de57c3ecf454c3c61d840e8599a55fc31217f6b86
MD5 e7da124b3cb37983ec26c4ee8e4bdb74
BLAKE2b-256 ce7da7a162214ace8aac30c9db0612baa06e1719667bc9233d0040fe4085cb1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03c723833c5ccd2e391842cc95acbed83bd75675ca19bdb1fa9f7e7635ad8f90
MD5 543ce4c17f523d457d11e5f3b2332e71
BLAKE2b-256 b2e42cadf1739bac91e06d73665d08ca7641c86effb2da79c8f9848410016f85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dda76af77cb9fefe972645c0d52c194d54a7f5699eb9099a69f5fe7b957dab36
MD5 3a1c0e7c5430c10b231acbc7056cd1e3
BLAKE2b-256 22dc23e20c353ca2e7b4e068528bea251b833c032beb4f5e801e8eeea8570c30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e151a49e34e2251b6799eb68a2d1209b8c7b8bc4ade9be3d7457ed0bb62e9adc
MD5 8c748fec200445317e7e89bb298e000a
BLAKE2b-256 32ba656e356af456e334d4cfb836b3bf37962d0e70c7f96484e34c33dc5aa5c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.351-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.351-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76f1f53c4ba0165fd8f76f62de1bc762c3311caa3336cdf2b820923649322be0
MD5 75e3b7880c0c2594c2fd517c244899c5
BLAKE2b-256 a3da60e7c35e1c01bd841b6878bf83fd7b5a2c9b13ea5d88d3f5eebe41d15c17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d282cdee85d0c9164d3200e627e7ef7586e6fcdf55a097f827097b86d418fbd0
MD5 3abc2ebfe35f3466e6b82ffee40f0a70
BLAKE2b-256 6ed77b9b422c3a59b47be150939f66f5637589acc32f4f51eff73f9d604a6fcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b442bcb7aec4c6778c70afd2c5775fb7ab67dc3db575ad8ae43fa388afdfca8d
MD5 912e06860a820bbfa873926711f49b31
BLAKE2b-256 780ad95254c0d4217c40790ee4b1719081fd2720d50dfa1bd0f670048f2d9266

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b163224c7e27e9f853f7dfafc438c7c38e29d3a9a3f46953b203d6078c45560c
MD5 3273535acc3aef53cf9408ddfeebe44a
BLAKE2b-256 3611f3fcb63daf093b0396a990c69db80c3ab25f392ac2b573fba9031e770364

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.351-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.351-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca7e995f6e8bd1a5ad175787080392ba442f2d1e9c2bfc3ee007db50eb748696
MD5 505e1b321abd2c4d7f56e6fd0b85e4e3
BLAKE2b-256 73129216e714195514176d80b62f02103cfc6bc34b346313d6bde4bfccb16017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c46b5d61b8357305b34a3f043e2b8f2ae4e3eb3da2282c6cc8bdcf79c707ac2
MD5 dc0caf4c3128cb99f60fddff9cacce2f
BLAKE2b-256 ca46d622c139199fbbdf90cc750c84e0a65a6c176658f5de953323da097df561

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 692fc6154d55fe7deceaeb7ffd6f193170ae9b7695d513d7f7a07e70ac8c0559
MD5 0e425717474c759a4614f5014a409378
BLAKE2b-256 bc4250fb5f29009114a6de8f000623861b3278d5394c36b0fecde4814ac02cd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.351-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.351-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 34af695a9007f329a92872903420fb55a9be5a2ba94dedc76250b4d43837dce1
MD5 4d9f985744b6af52fa26a354bcdf57a0
BLAKE2b-256 72ccfd61fc34b5b3bb5f02e498318f5a763441b961c00b8b53a646c4c9c11d67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.351-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.351-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 531b70b02269cec6c4b55c80fd637818c6961c67e42fa553bf764e36c28ff993
MD5 a8e2a8bd0526e1d2b4dfba11292f4f4e
BLAKE2b-256 68c877a2b5f0eb066f8e6527bcc3ca3be8490bde4cae5595995fb6adc612142c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.351-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82560dae8ef2ceac84e066754de9213ce17996dd884a6c4f5782d64199030127
MD5 49210f450fea8b00d2580a1060348033
BLAKE2b-256 b3125b988f744238f939779ef1d35454483b205ddc28b10e274724e166d717c4

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