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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.310-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.310-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.310-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 de6c04bb0994fd825d88afc6a3e97c1ce0484e84713afd329519a8a738d68bc1
MD5 5a1f0cecdbf323a7882ddf4d9f4d7beb
BLAKE2b-256 deaa656c9d3822b7f2ab605a0d9be78e23d50583e340aae5d526256b42505b29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a968e2d4a1257b2d53a019705ba17b80892786570a66fed85b5fe961bdd35f33
MD5 7ca70fc336de4f825e3089c995fc6189
BLAKE2b-256 74fc8d1a5490b929636944e97038efb43559d0711dbe1c7146d7ac4921c57ef4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.310-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.310-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db8a4a2dc5903d51fc6f02fc0ce149f00e8193955a8a3224c3b8b378d49826ca
MD5 aca13a44ea2faf9b5eeaee7bd15c85a3
BLAKE2b-256 79c8439ada012d3fc3d714d3c2baf09da554a43fa6a875f969c4408ccfa268c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f9e4df25b9ee3f767fbeb3c980c036ceb8f1f41f491b6f95e747c1b9ac05c88
MD5 22ca95e10c0743d97c44731f9a6c5e87
BLAKE2b-256 6ba64572674cf01c95868b13df4d22fa21b0d5ab236688ed9d20b3406e749105

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d9adc59f627000646685859f2dfebdc55c896b426042e5314923bc442fcbb67f
MD5 303340a1709e32abdf92e48517f97ae9
BLAKE2b-256 6f68830b33c376dcfc5d46a6adea5f78f78871aa24649405cf605f35e0bf8e80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 64e187f0696938bf91c434a225d11dc7d3c88ff6d5a76722876e9c92ad878c24
MD5 effc9679b7290bdc99c6b3a3f1ab8325
BLAKE2b-256 6925e2c07f1a1c72fa3c07ae4962a7d93284787f0d9d5b5279e5ee97a1e8f1e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.310-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.310-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6c6f0edf0afd452dddae1839b4fd75253a109d078d19e2d85122c604a49f7ed
MD5 ea953260310fa06a91be613af3652468
BLAKE2b-256 5d79142a865aae477967091b96ce79574254424666888936c634b45435e6a255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c45e87f7f87730784d7c7ebc95b99bfe7a7b2a11ae75efeb96225f0dcd162d30
MD5 0a79b68de653ac332835dcd9c61ac550
BLAKE2b-256 8206f641aaf596fe49ab98b4767470fd856059a3e4c2ebce86e1c4b683028507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 836ca08318f0e4c15dbdeef8e2ab67e0342f44c5cee296d7b798c321bddc2f6e
MD5 a20adc5426c5092335aaf3c2a1c7ba96
BLAKE2b-256 87154cdf937e63c40b6692b665e31c095e3951f55aeb8cf91701b97fbc1f4e71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b844debcae82dd4b41eb6d9b490867952442194a8daf139ab5a1e071b5f4a8c6
MD5 6efc1a8f09f18c11a1bc6248bdfbcc8c
BLAKE2b-256 8ed30652e55feff5999c04f101986dd06b91d18bb4b655ada51291a6690bb60c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.310-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.310-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a184e14f1b4d04d679a46275aa981ef067b9fc416ca9fdbf348800c18c71bcb6
MD5 56b30f43758ac68ea834c5592ca65552
BLAKE2b-256 8d87355b56682d22a53c139ae3efb818124ad47a87f8b4d4868b347e61d83e4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c484e9171ec594981d0aea877dcd2a4adc6fd46f23889c6ed097aacb2281e332
MD5 5b09ee185061964434ef0e64618422ae
BLAKE2b-256 8139f45b4c073b543d3dfd6f7b747107abbf3e0e1c9fbce522d87a99babf0b9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b7e3d9ed1ab29e3e1fffa4e6ed357b3b8f4c85b7f02a0d8af1538a0ea287ca16
MD5 c084e07843a1cf3a4d1daae50283e76c
BLAKE2b-256 d184d702840c57b42d4850bad6446f440c46389973e8075d4234ab504f6a3900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0cc2dcf69653ef09aeb6056d55ba182f895a9b5dbb25bd64e26f1182becd3a30
MD5 7e66d0fdfbaa450c1c9a6b5bbca3f33b
BLAKE2b-256 3e67ea3651acbb5e47b711495d0a8cb044a5a1c87c515062efbeb09f19323433

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.310-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.310-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13be3b1dad98d64251859db5ca0eac4e2f71d7b9d15455742831cf30778a5f39
MD5 36bc09432203bba771dc9737c2945ef9
BLAKE2b-256 c35ba3b93c119faa4d12e98468c4c95ca430527e4ced198ee0b1cc070dcba4b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4488133385e29d7e5bfa245085b5830eed86551cec35732ab384927ed8be46d3
MD5 0cbe6368837a1eb4e09dd8e3a0b722a0
BLAKE2b-256 955aeca9e6057a7d0e61a268071e8ccf08f8546940589f489c615c6e51cb4cc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4e2a5a7c8843db75d0ff98931320ea06ad21f791b82394bed53b66abd6089f1a
MD5 397eab9b1461141b9ce3fa398f4b17ee
BLAKE2b-256 0d3ffa420dd738217cf0f3c4ee9956a2c97d2067e49b069638dcb325a0e33db3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.310-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.310-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9c1c10f359e5dc302e0caccd762e365dde7bbd7ae5c488ba533929918863bdd6
MD5 dcec10f4b395f96cb857dd2d11780bd7
BLAKE2b-256 18dec203eb736a977e6344fb4c6890db249470f0c020ac17fc7825e0e4ec7955

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.310-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.310-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47c57887f3efe892b73fc444fc3fb8d3251cb0b52bd933ccec71ed780baf7294
MD5 d2c585cb72ce27d5654c599dd39a1149
BLAKE2b-256 be8d0f5fa3f8e6b47ed26bd5b4290e8098c5dfaf4193da2e2f89e4b03cbc04ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.310-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5eff542ad7a1ef2d2e941e9c48f01db1e5bf9f1a39592b6eb761cdaf2aeaa618
MD5 89a9b66fc14e0cf7d4200d679f9453a2
BLAKE2b-256 dc69375ed54f77abe9974bc105d09e24da23cc5963a4944136ffe09def1c8e32

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