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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.300-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.300-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.300-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c59194102e615d4714696cba9f688e7618a8b7f2d701eed90098b1fadf896cb
MD5 36eca347dba319e27fdec21b8e0f5176
BLAKE2b-256 67562296b0bf67bab6fb7fe145a314c92ae640f1b2e3a4008d2d9049e18ed616

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6ef7ee17b01c4c5f7c1c4087fc39ff5863148247d4585f61a46b34a176508929
MD5 7b3e895c234cc714ffa562d3fe54afe5
BLAKE2b-256 a32ec817b4e21611d1ea487fc1d4a1daef69f1da0f25d9967fa3140d4bc0e9ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.300-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.300-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0afe55f765d8a8e91f3d4cbdbf4b1aca1587d3f1416996c920bd98cfa7e05cd5
MD5 51042ae96e95afc31778cdff9746cc6f
BLAKE2b-256 de9f9b82d97e10b102f36790196c50bb751d334eeca4c2cb1733f91eee86f46e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efe98e56b1a7634acc94a9c834a64c050fde9fd184d010fa21882bbc308ee1a9
MD5 e7227220157273a8a7bf8fc17ca68efb
BLAKE2b-256 ad859f329d01cb94ca6daa922d07a5889a2f8fe4fa273d0c35c3b90578edaacd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1a269a9c407f83d415db086f5d300895afff8099ba7adce814aa931bc06a3622
MD5 49120f6f2c5bbf75bfb4c1785c347913
BLAKE2b-256 576f17b36169582dd1580a3eac587e3314ea17eaebf1d55afe27d939c3cca73b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b9721a54cdefa4c91b4ab75629e3dc974604f7b96074840063d6f8e046863035
MD5 89d98c7835eb253963f76e3d3ba91d64
BLAKE2b-256 5ded939303d896f734e41ea31123a327ed3d0dd9aa6e141985bf3ed56c4403a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.300-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.300-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf2ea5a11433ffa73c4fcf4b43c3559ae17b2b503466e05af1c405de7cbe7bd1
MD5 9c56c10f3df84d18a4499c247100a653
BLAKE2b-256 4b88029ae5f16c9c00701d1a1ffb38afbe26a6896da8b3b1b1b8dc5e5bec2b20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f4b73f4d133742e7d6cbb764db83fecfa32b82c9b0713e35b72dc39c2347e3e
MD5 63e462cd680f003b451be7c79075abb8
BLAKE2b-256 f25612f897d062481927ee6d5a5b9b5a5ab034952f599a6f031c68e103ae0065

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3c86a83bd0b8121d29fc0286d8c3e132d33c48e4920ea6d71e74857841b22b26
MD5 00c4dc1a32a46ec9082dad2157bbca69
BLAKE2b-256 c9f66d35f8523da29ef3a7dd74d05ee6c831a4827edcee64a9463914452be5c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b5670a859b616571910c661837aeb3418eb2f98ee09960905e92d55b5044bf6a
MD5 57446cd527574ee5cd1649487a1d2910
BLAKE2b-256 844246c246e7e2bbf6fe056738d068da7aa8a63d8885b7cb078c736090bb8624

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.300-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.300-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63496c0a5ae6ac66337da7a60585405910026efb748094c99660e66b5225c7e9
MD5 2edd54d1aaae06f486b7b838ddc57324
BLAKE2b-256 d79989fae20a100203cb0d623cc58250013f8adc17bd35360bcc46db2cf1ae25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0b7a30372f0a120b3abfafff4a496cee8f487b2e1f4211c22cf7984a1f8d9f7
MD5 d1721bf00fec02dbbdead85f028acb53
BLAKE2b-256 1d777ea10531a7bb69e73532a8c1e7a1f3e660156587ccadc7c84c01602d6ab1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f7849cef058ef00ed9af435ff30b6513de5123e35cb198dbfba7892df3e2c8ad
MD5 a0d565cb576f67261ffa3a6d300bfe31
BLAKE2b-256 bcfabca10760e1e2a7aba1fba88ab90d7c9aa9632db1f016f6ad50ec654cc457

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5c8cfcfc5d61665ce9c9a2bf8cf1d18fcd04b0ec72a0b24e23018d265022741f
MD5 94cb902bd4d22f085a576f7d3ed23ef1
BLAKE2b-256 036aca978e0df8531d92984a5909bf9da9540b0f1c6b15c6c587e6b436f82ed5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.300-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.300-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d24765f0c32d576183873fec56f13cc56b804bf80be85564f688c0f98355f846
MD5 c974b27eb78271df78835074e1b1299f
BLAKE2b-256 e824822ef13c55cb6921966bfa5e70c7cd304ce823069c056c7a60fb9644519c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b96c456f685307d050efa3ea765fb0979f608edd6fb2cb5ec63b0ec00ea071f0
MD5 4b2369686bb91c140fa1290beeebef9d
BLAKE2b-256 656e8b9b896a3f1f3fde15de32f299f7100eb8de98074d946b168d21a7f9a876

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4c53a958a2a356a2992d63be52111289cdf80bb0980f2ceea0d65315c4527ed5
MD5 e1660b269ded46687e4b829cf7fb04f7
BLAKE2b-256 5bad87343ac09218b1e5d5a1409aa7d8558d9009beaa23e70abdec428bf63581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.300-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.300-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 175b967b008d64c6d8b2318f37a2fc7c397cf1e14dd321fdfbc19e3fb51df638
MD5 4aa4c239c60d9b675c76bcec33412db4
BLAKE2b-256 f502c156c1e075fba6047785150e19bd5c2c256f75f1951d3d667f6cd2c86852

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.300-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.300-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a9cb8e342560cc8b4df4b7f13a7170b1809e51473f36b156abb7c073a99d4c0
MD5 87c591df52a47045290dfb7025f0c4d7
BLAKE2b-256 d46d45136ee7c897ec44d97d1658d4bdeee255f2c0b328f80f2a9549f3244926

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.300-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21b23a56a7463109a3ccef40a767ec56349ed36e5e6891e2760c569a956c3f57
MD5 5ecc0d0aa67907951eb0c5ab3b14e33f
BLAKE2b-256 67f4fd02a5962428f56f3a8952a2411805dbf945f2e05a725c67211ab54330dd

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