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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.772-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.772-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.772-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a796a0b7206a6aa6a84593f213da2b6b14643cbb190d37afe449c327ceb7a739
MD5 72ded81b98483619b5cf249ad62e2fc8
BLAKE2b-256 afb46fad50c4297bf10603458aeddec4a52ce3815e3d81015e32bddadb25cf52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 84a13dd81aeaaaaec5476eac0d93dab883f1727f0c9539c8600120c58c9f7349
MD5 703f8d6d659a10551f3cdd97f1036a29
BLAKE2b-256 aa74f93ee4bf03418df4cd1d9a1830b72dd0b08fa0723ae0b1ecb57bd4057bb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.772-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.772-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e02f6744645ba1ee92d6152a6041d161f51cb4097c4321220bda81b4ed8ceca
MD5 1f8586cb8f854eb28344b04e97ea28c3
BLAKE2b-256 18ca407004436ff6325f16a1c43b3aa65a197d75c178bb6c745d5c3341dc5eee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c922145bea575f80aef72d49b40d38c4169c87e23ecbc400f73fbd94df64611
MD5 30a5a8ef26094a6924d7b1ace95b26cc
BLAKE2b-256 aff205a3f947f184ce7e73a7c084f2c050e77cfbe7afc087dbb54128a75c2bf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f79b846c93400b6d8f032179e3e36d1837f428eb4a43d0cd15345cf9447a1bcb
MD5 07749cdbb62a49ab2e5f5a93f05bd103
BLAKE2b-256 15d9ffebf2e555b6f947cf57fb76b650705ac33d310c3d34a53ea721363e045b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 252daf564373c407c1a62f180fe3d3405a41cfc21d8b5eafb2127ca1627c47ab
MD5 f308ee758e021c0308e2cf19302807fd
BLAKE2b-256 fa2894664d9c53a9cd8eff822bbc0598575c43243770212d509b8187efd9c66d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.772-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.772-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 181bc7fffeb1efabbd4babc9612b027e4b9f8952ad635ad5fa9be7ce06f2efe1
MD5 4ee3b299bbf1a28504843095726c998d
BLAKE2b-256 bad86697d6f68b3bbfdb96ddde7425438005b5f3676a632244e746c2b73d3438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0261ba859689e886330d5c4cee1dfb000b4cfeebd5210c774d8040d5a56d7f6d
MD5 5bf4f5de574314e48fc7abd8a37232f6
BLAKE2b-256 75c6f490af09f5e90147d2c4888eea0b3ca019551f7a8fc82104bb9ac501d735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 932f1620cb99e8c1fc3a600d828f8ed8ba86ce4fae46183215d33fccc5e8cc7b
MD5 5e9024d493c969a532ff3004d2f20c92
BLAKE2b-256 ba8344b58013a7499b72da1d660261ae7976f875862cd0c74ad17b045fd61651

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a91ee26c5ec41bafaf283328315a3a1f868ad77053dd86794a9c8cdbd281782d
MD5 884b0002792b9cf5c0dc6d02a44159c4
BLAKE2b-256 c6f1e6ea16f2ee979244fbdc07eb5df5036885bd7518aa6e1baec1f9365c9051

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.772-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.772-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb1ce87f3819c5a98bf0183860697a3309db7d45da00c036d10cf37d74e57f53
MD5 12c16e1310b431f2e43c0093703c1354
BLAKE2b-256 c68b6f320673e6faa20b2fdd3de096a91115dd62a5ea39cf8c54f332a8554ecd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917c53a4f6be8edfdcca12653ce1da5c54987625ae50121588cf05bc7d015889
MD5 a88b3aef103b64af3073b5343655a7e2
BLAKE2b-256 0b2147b1f7083f976e4a9ae2c43c8cc7b400506abfd53fddbc1072c29d7a427d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d3cdb2a3d38c73a7b0ba75c4f8d7d9afac50bbee332c1416bde96ee3d052118d
MD5 4566381b2a6a1dc8cdf2451c6c2da024
BLAKE2b-256 0412eae6e61db7b4708b063af15c2921f690e40156e38563beb32a2ed9710ea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e7f7478c407d37296abb0c9ed0cc2eae1eb7991bdc4d1545000ebf33ad173894
MD5 3f6bb4ac8ddf315f4c962d579aeb9275
BLAKE2b-256 52c7f49944ee02355b7e2fd4e79fcf41298e3355791e3e52bfaec09447cc573d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.772-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.772-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47c5a63e9f0b5dd5a7996bb58163d56593feaa9e5800ea166f534218e7dde9fe
MD5 4cd6ade3e1fcc2c301a5d5ae1bd1239b
BLAKE2b-256 903ada3d9ff4b47f4ef8886215dfcf18b4550c3ce72b97659627e2163fa97571

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f30a5abc5db33b090667600ea004c29ce4ba13a03186c45808c2445c6b064cd9
MD5 ef6c8e2c8585293848d2de1b2181e56c
BLAKE2b-256 021b9592422acc6792338eb9d5edcac0c7a1663a83cbc411c8a6b04c10df7195

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b5d0872abb6733094e5bd63a5ec899247b92b8f296b102caca8b72385548d962
MD5 0099f0ec3ba2a9bbddb31bc70f6cea82
BLAKE2b-256 61dc0357be88713ab98aa83e66771962b77c8cf88bb5263c69eb1f0767bd3c8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.772-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.772-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 075d670071b63239595dd8d839fa371ac164120755276e2f3ee6df3170cb586c
MD5 2142dd94683c115530fd53a698b30588
BLAKE2b-256 982b8b39e22d9a221e8ac844e59d327320427d3b25e77ac12ca8de1b5ba9172a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.772-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.772-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54d180d6d680ada99074735db08f2e5ee1d8b506d4fd03fe99ef75b106a42056
MD5 f1f143f249c16db5f7d58c7df67c6310
BLAKE2b-256 32ebba9953f88d30431620fbc251e5608b8a4fc7627f1c228203d86023f609e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.772-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b67d788d7a0a3297bf29c5f2c54ba52a4496b3b32909f75f385143c59c746c6e
MD5 e11f3d2340ee2e143fec12a329b05087
BLAKE2b-256 796bd4501b25d20de052b1ebe01b872a230b1f2e7fb62473fa9b485e550b4928

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