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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.338-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.338-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.338-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 523305c6ffaff2329c123e9efed4caa9138eeb61ea48426f673fcb7b311331dc
MD5 9ff0e3a2c09b2041b8ab28031d839e28
BLAKE2b-256 4d93c0e9c6f7338f3476470935997524193689a569f46b0f41fb343b7c3ad132

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e6f3ceb554968e6a74f42d9b2959881c4bb56fa2e3460a511cb62e181608646d
MD5 89bd34efe720708c203e6bd9d99e9296
BLAKE2b-256 54bb575135c7044040bf59ccb25ffd70e7f74160e419ab85b10ce21027456b05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.338-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.338-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d15d83a473a4e3985ab2a9376c6b6df8812ec87c30204736dfd2e9e59dae912a
MD5 2348c6b0895ab9176e3bc374043e4055
BLAKE2b-256 c384d4a240785bdee399e5f3d723495d31a6328b5ff9def218309c074b74afe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40c82b1c28b36330e6990fb08c0f463365878577742d6dff00b809022fd2b3dc
MD5 8ff7c5df9842d2be1525a9cc29759ad2
BLAKE2b-256 66898d4df5b88f8c24fe2e56449938f36af00e76a58752e26558527c81081a39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 418c458a458017acfd05f32d98e1567418654c07699d1d60407be75eceee1e87
MD5 0e9e73d0fc82ffa67e6432cfb7c8b9b8
BLAKE2b-256 288f7a4b778b31932422014453f31c73d20901f3aa2175da88051dfabbe27446

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3e8a5a0613f7cd0a458c685269982a010714773eea5ea9b2475dab9ff27ce803
MD5 c84ecd7ee023498440615e453ecb4aa1
BLAKE2b-256 a724c9b59c58619bfa6ba9aec4e19c266cbd06750c96a6eb62eb11ace6ce7b1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.338-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.338-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35edc3efa5a700bcc8d8f5984d32d68553d83e0d5fc8ad73e75108e3daf9f319
MD5 83ce63558d5e28d2d163d44053bbc747
BLAKE2b-256 4285e2be125dd44d1d10614b9517867dd0d07c0bc53016ff29652c4c164c768c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feaf8afcdc88b5b310bdc1d50028cc78c8f26d0a4b7a5600b4d08070025ba82e
MD5 f1ea332f12cf21c205e45da24a145af8
BLAKE2b-256 c83f68ab53378907ac20d025c14728985f8966596073d0a9175a0f78a34e3d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2d81c524a98777781a10929c6fb875a4da7493034ed03ea9632e387c34de7f4
MD5 3a3a395bd2006d81ebd56651caa78bfb
BLAKE2b-256 3cb01a25ec8997dbd68a592891d207a6362467e77ce0c5fb3a47e3cf437c4302

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d6aa5527257be98d6d5060ff0824a9df4a51dcc9bfc32d76147e8e956cf8d790
MD5 7598feb092a470f054dc3d8a16ac081f
BLAKE2b-256 1049e50c5c9fb3da68cc0713e9c731d9dddb93e5862a990d6303f09a57bdb9c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.338-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.338-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 631f772ef831bc9f5acd9ae955d25712dd1f764727dd21800cb2ff84ae79856a
MD5 4e6df1f2adc2e321fca8dd370733fed8
BLAKE2b-256 1cde5e243f89cdb20907684ffc0d0b703346d403f3d0c25a9efb9c385a3fb5f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ce2f0561d8896dd232f68309b5ba0a77b8e062f751d917c60ab744564e34f63
MD5 651eb71f5b26bb1eddc7581049008387
BLAKE2b-256 4be383e25ca24cd58d04890bb2b7ce651295a281ca0e488e000347fb5f20fb77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ae22a4348be6d28d1e9b302e2c9836a1342291f1fcfb477a614648c4f67cdb91
MD5 7ed8211685e90a5b4a562a834d74aecf
BLAKE2b-256 4f6ccc7b52c82dabfe2a71457c10c9253b2f30d45a2afe307ed754d2dc1566e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7ad7f5fc2ebe582277ea657f1c24e5a1e2919972c88c25db46b909a4f4c5cb78
MD5 b26317715043f6b3f6c1f61472f06aaa
BLAKE2b-256 de44b2c60eb18d218fd28b8a12d14a0fce52ff97123ef7076f3b119e0d27c846

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.338-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.338-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 130c3b476b4df3d55fa433c36e9997fe20cae12c84a39177f02c07b721984498
MD5 28e0ceaaf634c7ed9802ee286eb4d16e
BLAKE2b-256 9dceac99deb7ac6dc641759a050c378cb8b15f4592ff1fcfd48f7c9547161292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 219a2ddfeec8eb57e64cfb249f69c9f139f46b1eb2273f6a351ca277c619ae6d
MD5 f8d41e099ba948a6a352ebcec002efc5
BLAKE2b-256 0ca89fa841fe85c3f2c6968d86d2ce5b9bc4e175c6fa2624dbf28b8c89c1e05a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3e31928607adeb78d4f22071359bcc3f66ef7eb41527858ccf3c36cd8cfa73cc
MD5 ce1e9b74ac21988211fdc5cb39783bde
BLAKE2b-256 466a3bf0a8e1f16447167656c5c36568d6d208e4148811cf8da77f4937836d9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.338-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.338-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 25b834e77a09181ab4243e91443df215c859131d8a208c0f7bd48f349cd74b52
MD5 33289fb9380ab1ccdf13d9df097bd658
BLAKE2b-256 4dd31567a295f983b8e0016740678474369c575b66735dad121824b0c932d9dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.338-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.338-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a39c4f1b3aaf25963f609d6ae2bbe0e824a566514bfa76b663b487b273bc1b29
MD5 d67a10e0bbe68991d7052b9aa9aa83f9
BLAKE2b-256 4d90e78db033277bdc35b288e5eaf23edf0c87072c69db17327f47338f31d18c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.338-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9c911c317cb660640497e663a24d646c8d1cb0f8efa40b4523123861226fce7
MD5 b5168e03fc7d0a2f8f1ece124f123700
BLAKE2b-256 040e2a1a5039e240c3e988110ec7ece3c59014630d50dab9049ebfdb3aa5a28f

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