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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.817-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.817-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.817-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2d498b213467f82e21f6bd6c684dac4a11cafe4df1483207ce74800f152b8fe6
MD5 8916358af3194164bf8a50e9262f3cde
BLAKE2b-256 458adb499ec69f0eb25054204f445bea507794b3b2620958b9c8290daa974a33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f152c84c2f52f9ee5819a04f6b7be3c0eb8165cbb817af9c65ac9dc3f9506292
MD5 337cb2e2d7af0a4677514c57452b0315
BLAKE2b-256 4046265d637d1d16588c4fa3aeedf26abde131202ae15c3c45a2a2f3ea3a3240

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.817-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.817-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ae32fd9c47b503750bed8c42dc83f84dc6862bd6f54e3cb2026f57b1b039c75
MD5 ab9829764a975803c0a32b267c7de56e
BLAKE2b-256 84bc687e79e01998647e4c59a8755237ff37ef0b666d60971be20e0682023885

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2494a5340c145cd964326ade26a15a34766b1c2d82800e650021af22ed8c7b1e
MD5 76963ab57ac44287b4dcae5c2d671b37
BLAKE2b-256 6d77db3d1cb72d2f83907af5de6e01a0660f39cf73ed43a51017f2d63840d6d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0c0b00bd73106a3b96f18d1904831986b00fae471d04a5377c08915f796cc8e6
MD5 56d914b7ba6d223c2129d3a51b8ad90d
BLAKE2b-256 6ac95fe09c42612484be5571b34b977810c7f9b08ee7d53c558e391c03ca8add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e89c36a77ff4175997fdd9bf24d907d34d71de701102c49501bf004c7fcc9376
MD5 6b20884a0f1a0e761572bc8b529a872b
BLAKE2b-256 e92c0b6a8f6d9f6549b225785c4688e0c15e01bba94152af25242c50ed3f2021

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.817-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.817-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb99214ae127ba4d7aa8fa67ee41a455fba05a0e96a86ea28db75f8e90e70f09
MD5 8e0ab98ed107547eb14f14b218d6fea1
BLAKE2b-256 4fb838bfc96cb728ef1abc110db52dbaf3f3ffc77604f76d340eca2b98d3c2f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6e3f0600ac1c33df942e2e0c8b57cabb17481d63a6af90866233903d0996424
MD5 ce95545c0873a9c47c97dbce39c03800
BLAKE2b-256 4158c336927ab3040b7c9230fce7f29c5dbf9b0cc05117969099e967559ccca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 62e7aa782b95c3ec753261fb39049b3e521294c37ababb2680f7966933480d48
MD5 99e5173872755cae6fd55168cae03bfb
BLAKE2b-256 d0df39ed03912618d6567404731681d1656bae1da4aa1e7949d7c084009b4047

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 845bdb113cb028dc97d2d6062981ade46ae1368051903471198be7aab221f62e
MD5 3f9d6bdc32d5222239479c334a180c0f
BLAKE2b-256 e8ba4bd2f97994a4359504b23f27254b0f731fe3ed98b5bc7bfbeda2d33b21fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.817-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.817-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46d93b6254e873c501efc03bc87b184a8d21a158d04abec1ecbbb5afb6384bdb
MD5 6b4d776b954796fe8c894ed3bb8308d7
BLAKE2b-256 f9bf931bc60dee36aab0912d50b15892ea1452531f51eb94607fe5bc1a677de6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a98eb372d056fd185bddcd49bd04461a25a5d3d2285e75258e48198bc0d4872a
MD5 51c63f21499825a6cb2758d5a2dbf789
BLAKE2b-256 b9b8fef05e59dc720ac6d5f510a99785db1b1df11563f567d1a5fbea701639df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 669c071867ebfdebcdf4e9305eaf9f72009cc1b4a69cce873901564d81f51b18
MD5 7df8664a90986ab2d10ee68f600bcebb
BLAKE2b-256 d97e3d54c30e55a9de1ff5b6dbd01c5625b4e1c76d06a52af27c0f988b560873

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 578dae9db6f021ce0a24a98a341737443f23083b08f23864044c2c6744f305c7
MD5 10b1f12bad6c397d0ddbabb394ac0818
BLAKE2b-256 d24a59f7a539de7603ddd3f389731346d30457fa78a59658ac349553d8a1b2e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.817-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.817-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 831377aaed18bd2726b4448c79939e061ebdd1efaa69b44942be3fcb501fc229
MD5 2554e814615d159d31a62d8f93b1f73a
BLAKE2b-256 d7092faec2ff3c2dd7d5a91db634348d85ce11077dfb703835abc04a0ca218f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 505bfd33632fcdd16ae44be84518e51b79ab90cfbb2a282529588d1f9495c25d
MD5 0e606e3ea9cad2a802df40fb0b070946
BLAKE2b-256 794b8c3f2b0e1afafb3627687fa6b9af5ccb1b8a22f52e8e7ecdb4817bad55ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ceaa3549c7f8e43839183fe3f5dfd5f0837319b7fee3dd3c42033fc4f77191a4
MD5 4c0a7a453d8d60ff1d0860a5361ca188
BLAKE2b-256 f3f4713b30d8a80861bc325215aa504d39fff5a33eccf440225d494361b639b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.817-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.817-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eb3cdd06689e2f7f33ad3b52f00a6e2187074c17b07a8e1e4fb98325e65ba61a
MD5 5179ae3048e345dc938ce80119d01796
BLAKE2b-256 a28e42a27ed278d62b74c46854a88ff4933cefca47f6d47c43d5f7b6f9c2ce10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.817-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.817-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f522d69ecef839429fc3941395031ffcdee0b2a763ed3a6af6a02a4e996f043a
MD5 751f10bfc901b31251013a44a5d8f8ca
BLAKE2b-256 87244bebccc38b1d41015a32b62f86efef771f1479a978493b00ee56f40211b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.817-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87df9b93dec1a15eae447fc3610cfbfda532e092cc4f1d7c58e10bf0fedd38e7
MD5 5687df33963ead3593a148b6583cdc4f
BLAKE2b-256 6a9db50c3c0f4914d6d7a12f8653ee94bf83d7d215ac53b94eb8226ad46a869c

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