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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.730-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.730-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.730-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e07d3b25aa13a1e304771b0d292db9eb056f9d8f0179f33dd1f77ad9c67c9578
MD5 e1fef357f4c746c4141507e7261625e0
BLAKE2b-256 44557a9d57c185d70f25bfd8b35a471e9f5d7fe2cc42dedcc1e1983469639743

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b7ad011597ede5dbc729a720f19aa285cb915e74f0620524117eb3788573a8f8
MD5 64f72306b7390645990fd2798f1bb057
BLAKE2b-256 a7f0987f8f3709af2fc47547631e050204ddef56852789140043f23c373374e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.730-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.730-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e79166e47f3b4064e0c2d0279f41e0ead3b6508c0dcbc8d165efb97bce875a6
MD5 f141791a82c7355d36cc65b8e34937e3
BLAKE2b-256 9073ac158a197178cfe2dd71e15dd5fb1f44760c0e14cf83d4299287ecedf24b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df4518b90e91eba458e90c40987371bd7cd79aa9265203d025042fc8e132fcb0
MD5 72bf5ba4befab78f4ca1b3a7db65a234
BLAKE2b-256 c944560326cadfa7de209af873dc6cd21715e2be94dbebcf232f572f625677da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b93f57477223532008c17791d09d4fa6683fc7cd855186108d4485bb74ac583a
MD5 2dc129fdd35c7de2e3cd551fe8e2b129
BLAKE2b-256 4c080938ae68917c458d053830a2873584e1b8765bd1f671bf7ffa028512c793

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b36e1df1df28064f1119d07c04ce61759caac7d24fdc727897ad2a61744040dd
MD5 d8d1a850a75b2f60a9e0e4a834107828
BLAKE2b-256 0443c37d9bc79cbc6c37be9761fd12face087bbe5bc6411f5d0ab497db9594c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.730-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.730-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 11248cc13a984d3f5cb8f76e8762c626a5897a273c64c783c4f0e66e0d7947ec
MD5 75fe0d3c7acd418705bada0966b85707
BLAKE2b-256 7f08f78f56b87863e54fe06c55a2d796e5561ffec3f8910a35a1ccf07bd7b6db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 155cbd677c27bd47bc26b52a55e1eb42fb5a83abb8e1c1adfa1e50dad747839b
MD5 49d213ff96b792014440ef5eaedec29e
BLAKE2b-256 079d74ba54b70d81adf0a0510aebecdd9fc82c08e6cfe0f55c85a671be9cabad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 043274c644d6636f245304bb53622746fe56efe77aae8484afcd994aa0d38f0e
MD5 eec1e4b409c6f129a0d1837e06c8ca45
BLAKE2b-256 90dcf2de51e749c9b755e7f62abfb1823823dae5f536d0b906b12b5b23c992f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6f153dbe0770e47e6293651d21de765872806738b1b429d77282952fbe9e5eec
MD5 f51b89767a9354257454d1296b066c80
BLAKE2b-256 352b023162726c70419f1151d7741496b3372002fdd0fb784ec59723d825b2cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.730-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.730-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84cc39ca2929b8f985c13cbcb2f18e4a1ac22fe03934825dc66a5c3a88a5a4af
MD5 719064c36e70617ccc8ca65cc52a5b0c
BLAKE2b-256 fdd1c3c27b0d03948f19c515a0077c21701de1b6f64ca8efaedd1f38ed997377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb276ce0d9b0bc51339b009439c48f306e8a31dcefa5c5c37af0376ce27870f6
MD5 99f4e2fdd971a6e93d8ec66f728ed355
BLAKE2b-256 167e3dbc2cc8267f8364d0bffdbd7f80d8daeae357edfe66b55cf883c0a8202c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ffa8e2106c03afc2e8478f37f72f2f10f3ff9ca721e64c73a9a94ac8183b4c37
MD5 d50723194b3a60139843c4ef974d6f7e
BLAKE2b-256 d76b364768d05e81524c7d2a67c8e8c0cfa9744b504e0e7e3addda0545ef3953

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 444c985ea938acbb048c7ff9f363fa48cb76c40b9dd7357843f76b67543a28a0
MD5 3b357d8abf3200a2f0a5006907f5edc2
BLAKE2b-256 73f108f5d1e4cb393bc3e607e8c3d48d13907f467f3930cc9344f7cfedc40b8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.730-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.730-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71046e789b688920a45eaa4116735192392489da1ed289a4c853577c5ae463a9
MD5 df90b07cfb1c71118a564c6099df1f12
BLAKE2b-256 144528da4a004a2f890217f3898311716af19a1b84038a37ac1106068b7988b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3718020dd46164b200c12fda8fb1a0f49ab23f520d4b3d9f222f6078e0d8c1d
MD5 0e0ec538628a4561785a2b3d478214ad
BLAKE2b-256 c908b66ec1d4df89998d6062da2f15a75d34a3b67f2c451f602f7a3191b5e75a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e6b742a3a07dec7b0d9a641fb9e715d7ab2b2ff7719e6f5a521cde257b26cee1
MD5 d7ab82e03afb0e76598f7f7c65ecc6a7
BLAKE2b-256 000d2d923ee2a2902d70c6bcaea5309f8736658de70bfb69297843c22f2895b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.730-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.730-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c927b7ab5b1b8675db95941ca7cce486d0a68ae9369d72a55d29cdfd30e06ed4
MD5 a84f1d6bafbbc1a29962a7f25c99a738
BLAKE2b-256 cc6b39982e3b44adb9622d0a0d3b547dbff059c8e244bc136b50c0ed33a846df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.730-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.730-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc1e8963c2f8fef21163d2fd21aab3c35538f1fed9d2a9bd8cfc88dc1b736d53
MD5 b35b4182055e0b33140f28f9f7fd0a6e
BLAKE2b-256 ae4d02e980cbbec8f302b964bedb036d9b18f926c85a9d2f4d26c4655d2e76d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.730-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd9022f53e5ecc509af593b7edc0e2bd9b9d5642919ca7d5011b682c543f4496
MD5 cb0017896d43d3400c954d33b49efac4
BLAKE2b-256 3eb5c7d312e5cedb63b5603a2a2699784057ef244b25eac2f30478025936e675

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