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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.75-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.75-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.75-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.75-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.75-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.75-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.75-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ceedec2b5d11bddd32396b256d2f4759b6e9e5befa3352fe5ee7869dee49c738
MD5 369951c3ba2e60628cfab8c92f995490
BLAKE2b-256 c9ddd4b42f7f893da6f0d2b2f446e8ff2df4700c0c03186684f1bec37c539468

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6de875553ca605b4203710dbb316ea80ccd3a9e1702d91e5fe03598669c8902d
MD5 b85c755a9d33cbcbf952eb4c1078eb86
BLAKE2b-256 0e82e128bdbe8521da26fa17619f4ab014c2e47eae0f92becd5848d6c63fc3cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.75-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.75-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7a28659a4c8c1362473e70dc5124ecce35e06f554abc2352f58c78e7826ad8b
MD5 09121504800f3b1fd1902f9ea5ef81e3
BLAKE2b-256 91740faa196d948aa8fb0eb1377f0e8bd7cd65d5c018c91f8dde2309963586f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.75-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4ef1a2f64626bc46af431165e61f5940f631b9f95a05b0ddbe6e58d76aa9785
MD5 bc30d0680b75a8797ac0cb972e934e2f
BLAKE2b-256 b378222c2b27595be365869c835f1b95c5405dae0518e9f6aa0ffcbbadc28372

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.75-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6d08ff77f60adc9d7083a9780bae2577eff2eef440e71e5e28cf29a5c2279d0
MD5 e67d5125dce7fce0fc79e0aaf941f47c
BLAKE2b-256 86303e78aa13a15aff06fb884cdffed0a10c427e75cc9a39e2962939b1e870f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 881eb9f865f07e6b7db9692b719c6213a181238c59d157925a4bb0cd0068361c
MD5 dedd51423c7f8e65699652f020aee839
BLAKE2b-256 bc9b911aae0627f8d511994c72be2033d1fa81451b0f4e068881ec100afb917a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.75-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.75-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a14e04e81c76cab088c184f1bfbd6de9eefaab16ab0f5050a5b7be6cbe6f50f8
MD5 82592a8571b736b7c5e9db8b0e26f57f
BLAKE2b-256 6e0560db25f3e4ceca03963a21cc672e34a3c0f461180661ca99a28192893dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.75-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6512a460708e16fe3c7abed133ccb95382b271b715caa18e1c7705cb35574550
MD5 65bb7f2271ea337bc55db604525e5e43
BLAKE2b-256 28e3e7933b444b5a42480e6d9efb39f85699967ca937c65255a9da08fc7775d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.75-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8fd68b100c25465ad90a0ef319a89c0f0b385fd6f2c709315e2ba553b023cde0
MD5 c4e6f823e552b63548f26d8a375f1693
BLAKE2b-256 51ea50b06df43abba7ce8a7ac98cbc570e4a24a2502d5049995d741b0b6c747a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a3fa5c61dbd91647a18de878664aedc4aa76af8a88a71a163d2079f25cd48773
MD5 3152a99b2e135041d17cb0ba1dd6eb25
BLAKE2b-256 87f82ebd0b0ff0dea6bd0542f83b09c4752a82bc8ad0764a3b2b00b524e0e066

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.75-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.75-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10dc4046e0c6ac32c9b9ea9f79f744c2b87986e06b875a9357e5611ee4d87783
MD5 6328a7af391f98a757d1d7d1cfbc97d4
BLAKE2b-256 c202c3385f4b458abe25ce46ae26d4205df9e7bde440617394bc052b48d52213

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.75-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7740513152031957a990967cfcecdc5e0d3aa9f006cde38a60b564fb536bdd99
MD5 edfb60f1b887bab1278532f96c87b372
BLAKE2b-256 5f130882a34358852ee861eb3291bcf1cead101f86f349fe8f68060901f6502e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a82d1458c055b05bd01d3cce34aedbb940404b5c65a737b16991003e61d0d8e0
MD5 5338ff853511097a534bbcef3ebffd09
BLAKE2b-256 dda9cda9cc7e7625a14ca3a95b7694156c65e99504d799301304778f763ae846

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2b6b3e6426719c7156f9eb8012b489e5621bdc401e782d0e338b61b1315b01e1
MD5 4694fdcc90736c5afd62fa15b8005441
BLAKE2b-256 2a19bbe873e1353ca87ab3d5a14b158a30d16050763ad70870cf2deaed669863

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.75-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.75-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81690cc77947039ad3c7cd1f32e116ff4e201f95c649280c9cc1458e36d08eff
MD5 d888301e9731f236afe723e2209d6e2c
BLAKE2b-256 fa55bd3c221d1a291205491c0e4a878f3254d1dec168165bd3351f8aed1318c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.75-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06e4eece552705df1d94683466897d59cb9594971a6edf08ec8bb90e47b50da7
MD5 b8ea98767cd3fd4b50ccb96d25a404cf
BLAKE2b-256 396c9f2eb77a63e0cd805a804da0a19a2e479bb017c7a7c0a88856c751409a98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b6007e1db22e6b1d0927f439667e05cb1b79f73823452419a816211544d1522f
MD5 c8876f09f4b1c57f2976dd68c006d4dd
BLAKE2b-256 5959c3c08af06ecacd695b669639ab5109b207ae1c5073d675c26c437be2d48e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.75-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.75-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9a5ddea4f5e1459995cb256534632560def9f110990fd589381514cf123aab6c
MD5 3fe8e7f8eb0066f3d6dc6db4eff9ca09
BLAKE2b-256 340c717e218890af2a1bc47689995d31b1c0192bb64b3a06ab7d5a3dc8a1a94d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.75-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.75-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d2054e8f6b5d76d9bf6d300a1400fc1b81a4406df0c6c5b4f35ca7009a6a473f
MD5 27f6389604325177a25eb7390e8870bd
BLAKE2b-256 5b6c148d30b43dc87243a2959d1c341f0b583a5ee8461cd7b4d1c7025ff1b87d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.75-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d951446a2a9f37a9c3bc0ce5cdb9be31f2fa95831ee2552be2944afe67abde7
MD5 c1cf18729db4416d23b1a6713f01ee6e
BLAKE2b-256 3d18faf7fa56993f0c92c642dd9e62f657cf1f81bad34ae6ae951f62707e65ec

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