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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.622-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.622-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.622-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.622-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b3511511c0bbb16aa95d5a2a14fd61f3172c6b644bcddef72cfb298b0dd00a3
MD5 d1380d4da82ef1d7fe1637f92d1ec581
BLAKE2b-256 1973317c628ebf9f856e740c0c62391560759774fd844ef608f0774ee68c0a7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-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.622-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f8c82c701ca628be72ad8bf8e7dd99f8f0e364ec5ac3382a9207325dca70914
MD5 53d05bcf48f7fe5e221f725cb877aae8
BLAKE2b-256 937b2fee2e2556456d4f8f6b866ed1635bc312a33179e42e955aa062d47d2c96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.622-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.622-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 083df7948856cb1ef27ce84c0ded9b28f39e0f93878ba4c8ce0adf8781d1d616
MD5 63f5dfebccaf64c819afcf8587ef0c3a
BLAKE2b-256 68ddde6ecb60869b577d8037f500f189c2aaa4ec043bf8d3c835b34b1d826458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3959d8066c29904a77ee136ff9ee535cf863c2871f4bf0da97174468fbf8e9f9
MD5 52be7108004e304f7c963438531b3136
BLAKE2b-256 f6a1ee65d766d88ce4257fc03d1ebd7c5753a756bd45584d8de55a13608c0167

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fec7dcde2c3232385bc69da4043ae15ed0726412058aff58eb9b01e71232a93c
MD5 1d7678a24f1a5d411b52b23730e56121
BLAKE2b-256 e1bed53b6658fc9dbdf6f970e08641a0d116b79d201470460cd7b1b73e69a200

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-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.622-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7cf0eb510479acb5bad91f6ad41b2243bfc28a61d6e26fc011d74b4cb6eb565a
MD5 c8dc33cd2d05ca3273a3213c4aa60c82
BLAKE2b-256 7d6bdb972b55b039684bbeaac7f0527891cce7c82f030c9319e986a567b2bbd3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.622-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.622-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7c2cdda2c30c2f26218c999287af54b078ddf4deafa4357d1e6950f3a865b45
MD5 485b25d4ef24f05456978a381546fb5f
BLAKE2b-256 27a29f16a82c7dc80c07a0f11f8a0ee0f86e015d492d01eda67d56a11fd1038e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddf08f69c6de604a35874c25005c3284f630918f09008ca614276d64cd295d0f
MD5 3ffce5e06ae20b7a0e514d9d0d54c1f4
BLAKE2b-256 7494d5b03f2079e9b6d32aa6d0cc9ca4b9a0cc4c3d072d244675fb780d31fbc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 30cdf7520f941affd14f94bbe697e07a87d8488aaf91a329fdc33e8fc18871e4
MD5 0633171f0d864914361e26304b9c570d
BLAKE2b-256 40a9aba8687f973c62f8e890f3d175b2234dc7431facf0057be013081dc095eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.622-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aa193bfea3ce98f9473cfcaca3d4b21a5fec0ee12acf2f812837e02fbc2dfd73
MD5 bdc6c8bde671bff79ae9276b2b96f276
BLAKE2b-256 8f9d1c8cbf35e61aa8c2d0e4e14beea9fc301948147bffd7a383e8419a60030a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.622-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.622-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5318f206df2e1328145e037f61625f8b4eae08d00912eaa36d050db134560c10
MD5 bd8420b50c005db8a82ec41ae651d939
BLAKE2b-256 65091a4a1baaaa039ddc2c2dcdd4873cd5e448dc9903778845bb2cf91ee9eb70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9255d61ba6730956686996c7d0ea30bcd65461a2fbcf695d599b67ee784abd1b
MD5 27428961c57a8d18cf5c9e38adf2a898
BLAKE2b-256 5a6c16d20db4867fd603096892b0396c904c04a7bf403483d7a4254357147a58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-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.622-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c7ae91b3a533907c96407d55c321c272f50794a91b862aa83dbe0aa464ae5a4d
MD5 9f0ed51bcd676db02aea0793b9c4ab3e
BLAKE2b-256 99e4cb26c83d329fed12ec3a98e52dd21dd64d2b4d2a65178791b9719bdbdaf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-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.622-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 492b4552eeaa7d4ca1266d7757dc656686d71eb534685c00b56133029743bd06
MD5 bfacf0c8b99b58c1d0849d775a19678a
BLAKE2b-256 2271ae7bcfd4bd478778f098b60a6e2fb36f6187aca611b45a7ce1c766eb6fb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.622-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.622-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29e393d6d5602fe04d93558747f83a334ffcdf6417869cfeed04ca121f5ebbf7
MD5 c382045ee0989211bfb01cdc3f50b380
BLAKE2b-256 320c4b30ad2f610ec12a8dbabe4ac828e657df0950dca9ffb88136f3de08c4e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d8a44526ce479875ca152a30678c52f4cc3fc322acdfa4060c65fe059d4fbc1
MD5 2b15bc9756c5fd4e9bc8f264e23a066a
BLAKE2b-256 54bb659706faa95a29e92ce4bbaaf601a29670bbe1085fef84891bb4f73fa093

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-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.622-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 18aed1e77b40bcd2ac4d90644b00a6d00ececcb69e0fb400302737d0d037144b
MD5 21480cee3c86f1f70443ec29c091c2a2
BLAKE2b-256 212adb48d489f2acfd2af7e6564dd242d96e62811077290e80923ada3f9bf33d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.622-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.622-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 279f266574cd7e4b95cbc9ba76561fd5d29545af82085c74c6c119c4130d6ebf
MD5 31b90500bf48a79c4ec21316d7f2edb7
BLAKE2b-256 e59202399c7102f82861f1fb313179140879fc71fe36870c7d169edb804c42ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.622-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.622-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 536be3c5a953e451c2157a379f6d8d325e496e5331086a3e6d2d7c56962a0c73
MD5 8b714219e54bfb2bbae9d05d3942fb21
BLAKE2b-256 62bbd08f5fa8b5b481720f06789aaa7e7280fbd6d7adb996bb2e408f81a97abd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.622-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20032e53b4c310642e7f90af7cf80cf8d682ac7c56aae0aa8892c7dbbb792337
MD5 a82497754d64cecb49b251d51596aff0
BLAKE2b-256 3ac5ff263facd6de6cb0198a85033962aa9f64fc9aeac95d5f1f4884f0c969c6

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