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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.63-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.63-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.63-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8502eb64f4e7839e6dcb8bdf653ecdd194bc582e555a49413b45160222c88de7
MD5 e47ede078159eed16171542c1015ac89
BLAKE2b-256 8af4b8eefbf259b4b780cb9d5e75aeff092cfdd22a1d259ce6284a21b3b71dc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a896f7f12c1bf00f4d9b7e553dc98aad35ae848241695a660da8b84fd0affc55
MD5 0dc5d984dbdb1cd4595158cefeba063a
BLAKE2b-256 e3aa2d67b07c71012617baa2de05e6cefb9e1443ba34c182ce6f65404373d4c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.63-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.63-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95f8ff170cf3654706f83c2afb9876107d1950de2ae7d7215e906a2a9a4f2f48
MD5 2888f27f1026af1be458e2c540b12914
BLAKE2b-256 cd8751b5714f4530c05c88620ef7f93859de40edb84ba3170fdcc9ea2a09bee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.63-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4b419f8e407a0872267d76e27e56a587d1f9d628f510c3fc0069bec49014e5f
MD5 b51c7af6e6e0110b34ed6fc4a9fe6e8f
BLAKE2b-256 8f6f684188f0901faa5fe9c2c5b37a3fc0e3f66ef610a18b4083ae47c080891a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4afd1efebd6d6969a52052b8ce27c80c49e8ffd7448a03e2ae3138757010940f
MD5 c2f82b225b0e538990574c765319aafd
BLAKE2b-256 0e58d1efd17e32eb0def0c1996ededc5d486cf500bae977e38f548a5c028546a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1d9681ac32f256773ad78a2c857aa4dfeffa23cfdd60161ee5c05becb3379761
MD5 ef4d65c40002448712952ac22d6d743b
BLAKE2b-256 6273fd3637161de2fe3910344e5a055f4337dbf6a6180b92a082cfb5f854fea4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.63-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.63-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 980ef999a952a31b1e3da131d897b7f23e0779658855616d539f4e185a04d335
MD5 8c6dc227a29baa7f4d3844f8a6f0cdce
BLAKE2b-256 3b0bef469e374e56253a7cfdbb76f59ff80f1e8fd96c743ef3ef82a47583182d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.63-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 199d318474f3b78b6efbe623d32d1afa494c298af6e3ec2d693c6534dc8bfd3d
MD5 792d5dbf0e58288362e74c0e33e2a204
BLAKE2b-256 9ae17db9462c4012e8778a5c10dc70ce4c411620259f5e1076fa0872d4231626

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 84ebb657bae7fd6ae234dd28fbc22c98ba72ac97390834a71447a79eeef4459c
MD5 e094540682b1fb9a75bd9dbbf228512c
BLAKE2b-256 c07db37de119e73ee300954f48217462cd7361ce4e1ee60c6dc0457c2fe237b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a967e84c3b86d1e020bdf0db96f988739f3b0f0c88330b73c421458abc2895b7
MD5 20aa9ea02368bfed68850f4ea60d2bb4
BLAKE2b-256 e7f875c9d9b9973871b25e613a30a810684798fb062e32b90dbeaf42ccafa166

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.63-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.63-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20573e2533e1ea1a2336319604905c06e7451befc5285f82d01a8a510d733267
MD5 21dc133160c3d309006f11521f278ab8
BLAKE2b-256 830671da66dbf832bbb36bc02b3023773376fc2ed436ede94202f2d3252128d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.63-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 403a1715b205d34863a38c54530f5dc45e96ea95dd322c782745eb958b3e91dd
MD5 cba804d840b6ea7f4e4470becf2b5cab
BLAKE2b-256 356c37594ba0e57328de5ee658def51bf3034bc0fee21ca24977b109f35cceca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 88f031aabff893dc5b45b16c0447feb0ee2e4c15b6daafaef6655c2ed40472f8
MD5 8cab86cfe884ddf8e61603f9aaf0891c
BLAKE2b-256 2f7d1c638b6b7044a23f93a58756b16e93fb15d12d3c004d811b7d4d2b0ef072

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d4ad1bbedcfd6eb03263d6247ad54b058330d3baf3860602a210c1d04316a8da
MD5 8b870834c733b140182f30e76a817695
BLAKE2b-256 45b9b2305739ed33e173176548edec1a45bab21be7275646d6ac751e9112deb6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.63-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.63-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bfd88c7f1f5a0920874c0a466491bb01549618a4e370f575c5447ae0cd6e7a3c
MD5 a1edc367bf6c6ce752f23781ec45de84
BLAKE2b-256 851a80c26c0a17fec80d1ead5ddac33ff8c832abe7ad702808fb6e5257741fea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.63-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c773538211324707518b44ce115a313829a0259f151749d10c6f53be8acd0de7
MD5 154fb1ff215f465d422bc6fda03f513a
BLAKE2b-256 913cb4c0bdd7e6c2bd16f167bec14e0e651ba6413ada65ac595761007e94e082

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 978ec00b0c454893c24346a239e849502f2d5ebc22ae21957d1c21d385282a5b
MD5 d08ca60eb62d892fae8ee58c2a924fdd
BLAKE2b-256 99bc317e0236fbc2e9433c3d1a7e8fe549dc6ae06a2cad3678915a797178088b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.63-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.63-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bd33c2723166b5c4cf92246a58b43ceeb32345fff9ce21acb044f5a7a67bf74a
MD5 91fc2af9aa44daebc245fbaea20cfa81
BLAKE2b-256 4a1c99720163ca9fc556f7cacac486b7a33aca872010b5feb7b8e995d01ee1a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.63-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.63-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b252d45687b146510bf5ec144ec52ff5c2d23f9d99aa1fab3e8b59b3e9df48b
MD5 953ee859825cb58e5639ff854abb5a75
BLAKE2b-256 c644c25a3af896347a62bebfd7d603beaba812837af77b08743e2c836cc11a54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.63-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c752d0e37d8830ca4bebe62476dc228e542b05e1840758eb62e86f671d680a5c
MD5 99cafa014ba7e3247fe945eb14de77ac
BLAKE2b-256 aed41380c0f87ec79eb31d180cc82f66de1e16836c9f1385865528af8a7394cf

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