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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.956-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.956-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.956-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 69b46f7d7ad54adc1e15cabed1e2a8bdb1c8c7ba892fb5ef6ec950d756f8d44c
MD5 c2bbda6fbc1253feede153dfc219767b
BLAKE2b-256 f664e66c78f5483749ef54061f4d20be81293a4b0ad717a359cdb1d6480751f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85d1276972cf2c718b1271266135dc930d440a4cdcc12a7c5e5d45f6ee3cb518
MD5 8cb21523afe396f2b9959517b536ab47
BLAKE2b-256 88ac5511d8eeaa67ccf4cf86b26e522b5b8eff753d580cbf4b737ab1ecee61cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.956-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.956-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df395a289482e7aaaffff6cb975e2459bb0d118bd97f8a7ba60f6644a42b0036
MD5 470420f9672295212474e1552e5f6102
BLAKE2b-256 84136b56c497927f9ffcdd1a8cf4dc0b31da3f03e782549eac83d8e57d2dd663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9da4be01ed8da1b0e7a29d649f944db7164c11b85fd89c79c8944ec4caa99d7
MD5 6f2cca1ed73df9a5d45f346e74d99715
BLAKE2b-256 1ecf7a3ea6e6f1cd67ddeefc457bef95539a2dc00735629c3bd54112d0cee930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bbf52f7990832721da6008227913c91b499ce3ae44a2aef2713b99ca6eddc7af
MD5 189440a1157496ae309c1925a161ddc3
BLAKE2b-256 b751b21b19de698a14fd5a063fd7e8b2b5a75f53d638e733717374a6bdae2a59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dbcc332ff292ffda0c70a9d0e65ab7e5d4fdc53b75a4b03fd35365fbcf52471d
MD5 4f6e16d5d44ae17159998fa124215244
BLAKE2b-256 fb099f40367a8bd2c0bb1555a54b792562550b2823056f339c0f55585e1f4f73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.956-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.956-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1dbeb103d79ccbc2d1917455f388ca685638e4fd24622f0dd8795ea99e5f0885
MD5 930dbe3e6a39284ac275150daaddcd49
BLAKE2b-256 ed3fe0d2b5eb4fa5edf31ced073d17e6ded4cb52ef9775d35055b04055adfc7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7367ad4da894d027bfd95dd7256fb0eadcc16b70e6969b4afa5dcb3115c8786c
MD5 b6cb3b665e87635acbd2ce4e5da78492
BLAKE2b-256 3e929dc34495834f0847d6bb3f88485eb48ecbdd650abd215c83ea49fa2155bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ee4dcb4c1a4a13b17fc655dc481fd362612549378e1beede0985ec10d76e6a0a
MD5 4e8b7079ed62a59c7b22fdee77e730ef
BLAKE2b-256 d25a989f1a2529c6cd9c824ea8bfb21fa410c8577e3eb15eecf105b53d956304

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a919321b16a73d94f4204f13ff7e71f47113271ced6afdbe147e3205669a248d
MD5 6d39de1c495e7e70578157112568c7f9
BLAKE2b-256 8ff938e6f051c06cd4759b47aad9f4b9272ead72dd7a58851dfae28aeed427e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.956-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.956-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9c913cb75179c3d4acd646c0f1a14555b349980a6162d75b0a3518ee386b777
MD5 3fccebb5b8eade6626fa117a03d8a628
BLAKE2b-256 cab22b2f3e9220ead2be1d0d64b0521bdea41e597e7f09676cb7240a675eb04f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d8896018eb62eb8d2c8e5e472c746428ef345deb38bc511c57a5dcbbb4b615d
MD5 4d64c9aa163a136ff8b7dfcef8b90128
BLAKE2b-256 151c21d7ef10a2a569515afc955a157bc44b3f56f7f4104d309a0960121efd00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 800a0b004a177384b804577eae290079c31d9b6d49c9339a19501e97a5621053
MD5 f18af647f2da9ffe2dc677427c87b766
BLAKE2b-256 87e99b4b9ea364d9fccb8e7c18c86695ba7bbae32c9c4722418fdaa761224aaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f03b5f0f224a5e490660a7c38cb20f2e241e0140e35481386169d32db0b2b937
MD5 02d15416e951cc02ccb31f4c9e91e983
BLAKE2b-256 ad4f044be0a5ac0929541c0e5ce6241909af6548fdae094485aa9a2349ed0652

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.956-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.956-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97c4f856d6ca84a4cbdf00c5f0406614f71b4fc365208c706caf4ef24f2bfb0c
MD5 de788122c150d5f2534657c803890854
BLAKE2b-256 ad15f1568fc13032ae9cd96c29670bfcd926afd3766fb04ada91ec96a9ed37d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ac3b4737ec9e3bd2cd5927946c1102f6c71a0c7b6a0c694d90c4b10ebe7a2d7
MD5 e63bf079c64bc85dff42c9695aeb7cb3
BLAKE2b-256 6b249949afa6be92a4f49c9fc994854ebdba71de73fb90dcc2804c570f5d010e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0d392ac9fbca9462c53fa88fd62d39cf090e5ec7981008af67e606b43a218d2b
MD5 637e5e37278e295df56072a2701c5718
BLAKE2b-256 f7a4ff424e5484dc93c34488c95fa88a2f0cde953da3097b2c725ce629447d94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.956-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.956-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7bc30ce0b8fcab33962543519383aec0d3f0c20d98530496cf945ea69fa0c313
MD5 33595307566421b5451d1a9f87f163f3
BLAKE2b-256 68462a0a19453b855534f2981b2f766cc1894e63227327473d14712d511e51e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.956-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.956-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95c07e2ccccc7f29216755e24034ceff59fdbe91743ad0010d6d2486f85e01c0
MD5 d5a3a85a019adbb8f0aaf86538fed0c5
BLAKE2b-256 4571ab3acf37f753a4b46ef2d6b2c82a56b340cffcf31523bc2e71a3902d4891

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.956-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0118a1e4f31447e3e94432be18a6cc6e31ce52a8026fdbed76e19edda210a7cc
MD5 eab9a067ccadddf33f1603b48ef1ed4c
BLAKE2b-256 c3c0f20f58d5ab2efd3edc812d3f716a17981eac9bd862624de99cad2f1e632b

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