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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.894-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.894-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.894-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2f811522312b7afc328f0f08e335ee4e7b862c7d2db80c6f9de9801b487eca7b
MD5 ec378b7d9537cc67fb77d69ea179423c
BLAKE2b-256 28e4a37fdc048212f939dd575246bb72c97249b0e9419252c3a3d90fb4148472

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0f5dcc501a19a8a4cabc9f9c763bc8119bc4077dad2f7b7b31474948d0c24dea
MD5 179c40a031ab1f8ef19d1b6a83bca4be
BLAKE2b-256 2c41da9930c82f12404aeddb63bfe557517eb7c90bb69cc7ca0344f7398460b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.894-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.894-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b542dfde4b669fe8dfc3a0715bc6a332b25548ab21a2e16a5e48063deb1e1a7b
MD5 ce28f41bc51104cf8caf38f6c012f880
BLAKE2b-256 4bbc4c3b08adc5db26b4afb2166d123705db94532589954a0353437092b8884d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7239451f7c65b06379f01fbb9bb71f80335b2cb19233bab04672b797710d006
MD5 2a649dcb84724fbe8921138051a2331c
BLAKE2b-256 8f27e305140320eb9f6859bd1b5a81a8efde60b441c9a081b90e63db460a291b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5974d0ae6db556ccaef67eae84e795af2bedf6c1186d33bd8eb3a2d0f019a6c6
MD5 a4d7be2ef21fff114472236a4a2beab6
BLAKE2b-256 d68539221b65c355f83510e5a0ddc574690ef2a6e6c9dd11e4cee78988b8a8dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 776a38ae129c7821aaca43d851cc39f0c78672ebe2ee20d6799e9829c35afcc1
MD5 3ecb27b867b1fc30b3847210e88397c9
BLAKE2b-256 cb79dc361789fa2e1633247397f2bb2c1500debde1d4fab5ce7e7988be9dd990

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.894-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.894-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1685e9623f86f5cf627d452064a86a82b2b524cd2a582dd13bef5f31122e0619
MD5 59595c698a8ddf06853a69eeb583dd74
BLAKE2b-256 70ffcd87ce9fd497b9ca24b3d4808006914b8837713b75862e0a1be2e5554fde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24855d7783604a8f9a0bac376f3ada734bb9424e0b58004743ae2737e2b1b06f
MD5 b9baecfbc89b99630fdde36ea259a282
BLAKE2b-256 4d25cd052e9c7164ea715bf14308d27fdc9e47e88a50f3bd1b43955ff847be9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e46ba0319c4fb96039be518fd99e2eada073a2b5a3ca20262c0d773b5cf678f0
MD5 bf905f2d121fdd8ee570df5f99f476c2
BLAKE2b-256 a5d63e69db5d4f718bc9641844f3f4e4a37a2b2befa3ee6080cafae34fdcacfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 da7f712f238f687c3cfd37cf8ca6cca8791c6329bf842008946af835820261cc
MD5 9751523e52e8214150d5c00fc3a5dfe6
BLAKE2b-256 34b01ee9517a860a01d927b1d4e15266cfad7e2f1e657adb900f21ff7d0ac8e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.894-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.894-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b0516a0941ef25d6831f1b0151d8e0239aa9e1acd620ace5c54f9a428e7a283
MD5 cf19f4f31af6a06763678babcf0af372
BLAKE2b-256 f795d4595aed2933ab20979afb40b9138bf0220cffba023600b142614d4d84f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01cb2120be9d14c15022849f20160a1fd3c01bda4b83f721f12b1be9a66a5d95
MD5 ed0003e14aac7152c3efa4e9cd2a133b
BLAKE2b-256 bfeda5d79da77a2f438155042aeb094a1be9e1dba9c5c27bf6c43b1c7fb16330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a50b3e51427c906e86398a86ba933b0186f7ab36dc080e5257b26951c60f3275
MD5 a3ac4461aa1624d68f9fec68df437b15
BLAKE2b-256 e912de3142ab716eec9beced1ff8d248cec9eb66cb2afc09efa5e35f246aab61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0f3904b0c5c0d1f5e7f075a7d0097a88c10ef17f1f906bb44151fb840b3f7bdb
MD5 43488350c75695cecd851813015f263a
BLAKE2b-256 9577367113a5bcd1f6ab355d9785b5b1322816cfb9b15797cc5d8811a3fe70c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.894-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.894-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9560f1a170f700dcd166d347e489dbe33c0640d7c9fd692eba55bb0aa8febd91
MD5 3b68598ae1dea9fb5532ceef89f8dc8f
BLAKE2b-256 4c8f313d08bf8ff493d9f028cbbed96ae2dd88b48669e2c29a0fc54497f7bdb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad1b5d31f3e72959ac2bb77f88dc0c51b8e968453c9a57c842a30774f07342eb
MD5 6d8fb3f17758649b1d456af451e019bc
BLAKE2b-256 9b1b74245f890a5fe7bb11fcd03fa5011379279a70b6b26d3e49566d97e6e5f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5374dceffefb6274ffed1dbe6494be6a83a1047e49c1450b62a3e537ac1f7d36
MD5 dcbefef5b60281feca260e9357c87046
BLAKE2b-256 7f2395f06230fad6627d752dd4d170960e421d3b460cd3fc33e29c98c8fce38a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.894-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.894-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b6accab49c274e5d4f844900498924afac35adf9a8c3a54f5c75c420f3e40db8
MD5 2265fc259697b206ed1bb72e4f9bfcd1
BLAKE2b-256 cc8348afcbed213200681528af9b505ba6ac3d0c93199f346482ae0e34eb8172

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.894-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.894-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4137ca8f51920a9bb07f09ffb872ac429564dfb238adf93a5496b2ea94e20c0f
MD5 5ca297abc93ed7f3e9fc9d0ee94f9d13
BLAKE2b-256 e054dffde19a5f280a76c0d388fd641b53df7adc623f602f26840af6ee747777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.894-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5438bac16db45dc34aef04230a47dd7017bce7b132c0ab8db3ef326c709f041
MD5 b5e2da0984f34bbd151164c8d6339bcc
BLAKE2b-256 4557b7a67ecc66336c01cbf765f2a3e12065f0a3d494d633e27e366862697ba4

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