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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.602-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.602-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.602-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9ea8721dcacea8f9175e9816402dd081beed38a425e8935b908fdaf2f7ea57f
MD5 501bf3bcdaee7a3dfcc1c4aef24b898e
BLAKE2b-256 0e0adadfd225b526f81a7adf5b306288e5e0c735461be321937c93cab22c7cfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c2bdc7b083b9029c3478d75aec840a1e9b638c1e09d534111de924c2ec20b5d0
MD5 e08757a8155e83ee0cfea61e291331eb
BLAKE2b-256 e9f6bdcbb5739e781fb483e8c6403f6b3b1373749dc493401d7d3fe7316fa6c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.602-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.602-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5e75c83a00e05e3f7a2fdbd92e0e0f0fca97cb78c410ff2abe3c772e930130b
MD5 72e3cff24aeb71a7444a5cacd0aeaf6c
BLAKE2b-256 d60d5b689d2effbc1b1cf25d51cd015749677d5b02013c0a4cef47e269e84dc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d297d06dfe3bfe776fd0036596bba107b3450d436a28f8abad28287b5687797
MD5 8acbb8f0c228ece3dbfc661c18ad2566
BLAKE2b-256 080651f586ba85f9a3ee1ce8cd0a5703eb5fde92cdf50a29d4e009574fae8d20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf11277c19957d5dea1f6202c30490ef4490d1e21e7c53830cc2a305f67ca335
MD5 3702a0e3a4dbb90dab53d0d7d20df54a
BLAKE2b-256 c16028635509aa51feca5e901b568c4f90f7003cfea50d078479ee1d81252f72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 53337561d1de60b66e00754cec0571ca99b82d584ce9e84a6da071faeee5bbcd
MD5 d6f1824be57aa02dead860c9d9e506c8
BLAKE2b-256 4675c893187e93d5c0aba9de48ded70a6194fd7ddd8eeef94df012ae57a2d4ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.602-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.602-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d78c5b90b0efa71e8035e62e697d26212dcfc854e545eff94c10f01d9834385
MD5 26b2246d99083e7e58152d4913d31afb
BLAKE2b-256 d127b8a1d7ce6238aca7ecf63f7bb4cad875b71a913da8b30a372922c722686b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc8280cf426c8b0974faed4d49bd900718216b4ffc92bff4f13b689bae974c62
MD5 f66ee2a34e33f1f40d31081db2fc5e18
BLAKE2b-256 8acb945792f2eb3c877f3abddfb1ac9e0a4df51cd59e3013b0f1675bcc47a78c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 425071286aae9c8d82c05cdf7da2f3626441005c84625c7871a7179de6a18577
MD5 81cbac81425d903ee304834e12e830b9
BLAKE2b-256 12234822fafae4e44cbff67d46a4068ab4b0768cac84f9161788115ad99c810b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 eb8b038f50413c77907c79cb39796704ebff8995997a9a79579089a55cdb8c97
MD5 f7fdc52fea028fa42278143efdb46cac
BLAKE2b-256 b528de3ea8f4d9aba4db4e871b1360f754e42e74d6cfb9e629e98cebd8426c85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.602-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.602-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0550b96254bc3373e5827598cb0d83c90cca1b560d201ba57738c96f04126ab9
MD5 c790de6fa27e9cd10ba271253a6b59b9
BLAKE2b-256 1ad012fb0db66de6cf0bd874f22d7e96a8da2f38d0c2c5193ba10c52acfd654e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d1081458b76fd098c5dbfde0a26901c4667658d93afc087e0ae1e18e52aca11
MD5 d3f41b020a5778c1def3afb726ab9545
BLAKE2b-256 8d5075eb02434cd04d98cb77f28fac75437c36bdd3201c93894e94e7d656533f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 982442d508c337e13e7d2530b0b5c419f8db2a610a3d92637d33469a99f033df
MD5 78bf79b0eea00920c80909395864b76e
BLAKE2b-256 050166be4f2335a3e192db20686578f1fc498f3d412ce06db99e3d9217ab7147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8c7103070769105940e25f12d5ef1078bf2916a9b041a3685a3e5a916e7728d9
MD5 c74369cf5393ccdff2d67694ebb8e35b
BLAKE2b-256 ab4927d7db7866dbad57fa3fe5031356c05bceaff88b2d09c7aa6ef7ca9c1631

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.602-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.602-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 538d11e3ba2e5e7b5ead6b5316a7840a669a6a203b31659bbd8c182ee815750c
MD5 854528ea94fa2993c648babc1cf1a86d
BLAKE2b-256 7e85c7d5673042263cde83811f194aa0eb5326c7fdd7e70418257d29cdbb1bf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba0d656c55bcdb921f46d12f2a1cf7c3a515d65f3dd9850fb9e2068da0f8705f
MD5 77071c6541771161b8183e4fed51fa88
BLAKE2b-256 8741e32527853f8f70aa91836b5db5b507438ab0175dd87d4d5adbd3b1b183b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b73d599c504ec0518dc8e4a56c06a92536c64493aa05f7bc28d4842d09b6cdf9
MD5 862eab83a5314582c1d270f0ca5678a7
BLAKE2b-256 8d55272cd38256a93fef3d0c6e56d8595eb80f9e3442e3c04e38c04a62689a3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.602-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.602-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0e43cca2f600d39f8d8d484bd7beed2a43a7412093d5e458b616d3bbb3d7c1b4
MD5 965474828940905a9d6172850825b7c4
BLAKE2b-256 b11d310e6be13d1bbb1583d226c0f7faf18837d4dd41e22f79696c40f2b0df99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.602-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.602-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed7e82120c6595c78c27d6b3eea931a49f10f13525ead7d0844edbbec0dc4d43
MD5 4fcc6024a1a46909e6b00d1f376d2d5a
BLAKE2b-256 86d4c632bc40b4791abd7a98c243612dbd0e2099cf075729697a17b70526bce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.602-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19df09ce45d65d7ed8b59d1a81567ca2a320c3cfb3f61e9509168dd43f4be5d7
MD5 47def454d4e5cd8d4de0ac50fdf6001a
BLAKE2b-256 3b8d73c452590e756dd2903ca2b09dccf6081a6f9c6c91ac33c84923c4627ee7

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