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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.403-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.403-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.403-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 80f8d5ba04006f7e2f479868d833850c3b1a6b383345a3835191f16d2ee2667b
MD5 0889015c22c2fc99e07b66c7ff6d49dd
BLAKE2b-256 330b2a0034eab66a8979be2578d8c14cd892f773f745dab2115231d26969156f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8f0fb7626989916e767976a4e6f49f870dc4d9d9454afdb09d40d47c56dbf623
MD5 22a8b723741bf31a3de1d2d4d1a2fecd
BLAKE2b-256 2271d9c6f59314b6fd435837f48df5e14994dac5511ffc37cd48cd80b65f90a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.403-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.403-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 072610ebc3502a38013d8a2de564a0f024ab68ce5354f568f942e8f159d39c20
MD5 7a042b2e2717f605d715efb21e9381a6
BLAKE2b-256 5666016db9f59170f70c55187d97031cb0387d694255a7e773a975f220900a92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82a9b61ef6e1a8a2d7e6f924054371e8046370cc9aceb96cf8fca6de81199abe
MD5 be334947e06d0ecb0fb4d11064b96b4d
BLAKE2b-256 91915fcb855ac2ce928f268c10267322e410de859353254edc7dfd7aa1c7336e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1852a091835d112394dc8d4d3d95e6d1e0f7230dfb64d6371e2899d443d25aa3
MD5 2b563986a7367f951d3a27067b209314
BLAKE2b-256 5af7a7cd5129e95086303f0c6c2e628690c0691bc6649f54347d546b778c1f3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eab796c30e0c13dc1a75d71aaf73b1a495f736b48ff83218e85734ecebb8aabe
MD5 b8ab34c72d416a8de5de3ed7eb95cfeb
BLAKE2b-256 3f576ba58021b746ff55562dc48ac03f9fc7e7b14310db99e1c4e64bf1e89106

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.403-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.403-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c96bc9a5780b4d8baeb755f2a18eed765b440a8b8862c1317a9336a6a60582a
MD5 becf88e51ba7ce21cbed3da04c9326aa
BLAKE2b-256 24a9390291d9348d8150e00aae27c4ba0c6cb5cde10b51e9ab065d1b89bd6258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8770660a110e030b455a4bf9ea6c67f709025d402b89683d2153188f6a853014
MD5 7d9ad8a750b2f58069ad8043fddfa0d8
BLAKE2b-256 3645c807f22e24635b5f48dee8fc6bb9e258b458c004642a99841838813405eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1057f94b10d81abb38137a78d9ff15c554896423b1c7e7aa334850ea2f5f77d
MD5 abec4b97e73e495a5342b9310aceaa90
BLAKE2b-256 0bcd04571cbbbff3f6f5cf89e0b45933541c49415cc34ef2a2f9b42f484dbbf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a4bcfd2344350d6d9afd2da846b466e12f9ab77b5d768d09a04a3a4c5a70b08
MD5 6b98678bbb6dd35bf5ac015313d6198f
BLAKE2b-256 30183d291f40bb57aeb9f57d1a804697ac93fb4f72cc206942d5af8b2bfc04bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.403-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.403-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36b9ed10578bfe296fe7d0c93a9fc1256c4e9249295fd1c013a9e36061d68dc0
MD5 5fd3990797883594deea294ca1e55935
BLAKE2b-256 ef42bfca1aaeaaddc746f94b918aadb78ebde2b07641d996d91e9f691f19db40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34efcf65162f0c46087d518bc755c1dc3cfb42d5245a2f96743cadc09f94fac9
MD5 d6fab496f5f273e99ea5b229fb58beec
BLAKE2b-256 1dec8d8a62c150d5c12c4f71f45c6b39f79c265b83aa0af3235c3d700cd8eaeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e2d1360da12b347ef11b54a66cb0003c7a38666ad3c897cc0b4723a6e88eb56e
MD5 2295f49b1efba8edaf22263094737485
BLAKE2b-256 a9798703ec43a58c105d045218cee5482a8a4d21392754396b6dd43c0ca4dd1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ed08ca05866133f694a1de3bcbecf4621e5e95fbf8907a89dddcff413fd3e522
MD5 46ca1b9857db82c24c1ac66691062cc1
BLAKE2b-256 f2d663bd1d6fa24bcedde9946fc24ef8b136c61c18733affd252fe7915e5b940

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.403-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.403-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e01e4e847a8aad297ceea9b4b5ba927769b9d1eaefbbe47600b692097685295
MD5 c49a4f0b93e59985b8bdc472045684da
BLAKE2b-256 d34caa7596a0167f9c88c5b2c5c4632c1f0a36b44203801096600da78cf1d869

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0de30daafea8a4ef56dc4aef19cc8e42f33607acb0ddfde7d8af7c739fabf64
MD5 992feaca39cb0cdb7a385c240a8d22c5
BLAKE2b-256 b28fbddad5e3285c612ab47ec64b2906e0e052a6d1513844674db813f7d5cb3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3adb12331a9dbdca257ca19e16a9a169b71fae7c76bb21780ac3e70d5a276c82
MD5 1e70db416a1831fc00adb7dd7d889256
BLAKE2b-256 fc90e26921a302083ac65a9c3bda2cad49367a856528c692b1b6fb1b6e63913f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.403-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.403-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a735bf16ee82f973986fb05584ce45faa2d613bdaaba1c1090beb8cb95d0175b
MD5 2b18bf53c210ba7493d1d570f401ca4b
BLAKE2b-256 75ef428f69d4a94373a25fb618698da737af6b84345dfb4eaab841044b8b73ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.403-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.403-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80d221fcd887f391f1ffa213485a0a17cea174025fb8e229465ba2ef71e9aa14
MD5 db22b392e5f043e2e5aa87ca5d2a97ac
BLAKE2b-256 e8826605e0397b4ddab6babebb19b3df7474623fe50245fb8fc348f6fb2a3a78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.403-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84b0273ad6246e5f907e8b43f9fbf6d02bc2f7100195778fde7cf18491b8154b
MD5 bded481f517fb7cef6d0202012cb3221
BLAKE2b-256 818b3b8d9f75e301501956959fbbc8a317e5e065a4922b88a1e7363fa06b91d6

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