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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.292-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.292-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.292-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 20d9f5e2842d8ccd0a182028ff903ae8e886f91b1019fd42d37d66a792b82a52
MD5 54645830585cdc569851ac085feb1a98
BLAKE2b-256 f54c541367791a0b83bbe564a90c378cd4e47a7fb8331e9b97077ddb7e91d3b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 afbafffefbb41112fe5bb8e99c48186cd2ec91cad8732166d5e414a12aedd79e
MD5 5a32297fd51b8ae7007c87c5b44613b1
BLAKE2b-256 eab65e3f409cfbdda4fe788b25abd2ae379e9a1384abc86aff6480e5106f80f4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.292-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.292-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 478fe2194ddf1864fc264e38f62cc87fe6ea4fc56a26ac15dd87e05c609c7f13
MD5 138403605064f4a44cd403cac4dc1ee4
BLAKE2b-256 bca6d5a4ea2e7c7c016227bf745317548e1c39ae54c6f0f7b83ffa2b60abb970

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6258e8a748d50ef4ac78a151c4ab0462f704b28e476989f487a4f448bf67d50
MD5 af09da52d1a859e76d4681e368469f73
BLAKE2b-256 d46a7423ae7f94cb5fb885ec8180b3701c7533d9c068eee25c17dbadcfc8ad14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e743df783e8aee1da0578305594861c9d77525ceea79305f9d360e9da4c411d2
MD5 e505a316f26964980f1cfa3983ac857d
BLAKE2b-256 efd442598d282b9c86ed4e275eb7bd1705807325c5c5e1ac991e1c763610c161

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bf3e40accda808f7b7ef6bade8dd39c78b78460508b9b3b7f6dace4aeef52b7a
MD5 b6839740237d93671243e3b7594a2b18
BLAKE2b-256 7ad06166ab63e70d37f15092fd365d87e100ffc3f41f84efca732c601b2de070

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.292-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.292-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb1451e5e46865b51fa1017b07fa70552f9d4fdeeb641769d72bd280ea145e9a
MD5 57b8a6412e496c487359bd4a5ad66121
BLAKE2b-256 9af6af049b1cc6148e448482ceaaa6d90c096af2de3a6087873cba66e6a9773a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ae20964b87d032789c14fb64bd2acbd177abb303ac23ac757bdf84421343690
MD5 f4eaf371ab7084f31190d97559e8611c
BLAKE2b-256 139b6fc72819a33a09972acb531fc26a988e469f58127c0920a32f59e9679652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e2b8267b785b3c7f775c6fcbd28ec23c60db6b4618e7c51f342fc83871145668
MD5 60a375fe5f1c622d9e0012ffcb61c4da
BLAKE2b-256 207d429f56a94f32020f3f3bdfccbdf342233f777d190e5793d569d3fee4859f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f8929f93547a97d90eea323e70eca8c0a1920a90368d4927658aac12e82df1fc
MD5 7b4e3c524c3819058d8c637de73d3b9c
BLAKE2b-256 298bb96cdd54f6ea5940def1a3a69e6f8df0969d7293e9b9b2dc3eff4d3a17dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.292-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.292-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b6b95e73e44174f08da5fccf8c3aeb22066047f73b495506905f1cfad5a3d4d
MD5 cdbec15c908aa6dae411006607c7944a
BLAKE2b-256 57c77a848a87b5b89cd2f854e8eb4d6eaa616a2c1459e5ffa199b1433f4ca029

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 298fb3e5a93dc8b929b825f920acafdb3832097edb917d06bd647547a03c20c1
MD5 01db200aae221fc0fa9ca3dde9d8446e
BLAKE2b-256 ac971e931695c7ccb8eeaca28618498104d338cb4b745928387e9c2fca2145ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 34becd5be225355ceb97006d057fd46229ef87afc1bd26dc27725a2640348be7
MD5 a3fe24e76ce5331ec09a8dae00d0fd0f
BLAKE2b-256 f5faebb0920c0b46bc39ea580dc9898625c8ae2d7f80f97c0a29edc51abe9bc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1959d7bf5673bf1530e40b45f21d14ae9d2f8ba4ccecd6f8c377d0ca448791a0
MD5 cfa52b1e9d9798833d4dd755052ab6ef
BLAKE2b-256 a8a294637cc665d47f99fb9dbc79edb73f8883ffdefd7b75c585714455563335

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.292-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.292-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a592952d1e8d372b0e9a3dc5ac4a40277bebff2017217d26e5f1b36381b64515
MD5 b5df54ec100812e38462af65ea45e5d0
BLAKE2b-256 4cce232867f6cfe7bf04f29d50b4dc4dc65d9041cf2b227da2b20c15cae2c8e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a9de0a55921d927565b281ce79838a720dcb52bed8e6eb3bd9c64933926d0e8
MD5 f6d50d81f8bddd6580b366efaea11fee
BLAKE2b-256 19a05805f501079f7a779a6d8040f49d6329b44c4ce71bc542c9e974f8bf1f13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e78ef45889e620d569193447cac59ef258ef5d538cdaa3639db7abbb2d9ddc73
MD5 112667ef1d4981ff071400b64151df19
BLAKE2b-256 34894e10bf462f3ee4ff7922aa3495d7ef8b586683f52224cdb17ce6aa34f5bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.292-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.292-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 38c115dbd0605c4004bd0eb87993cffeb9163e1ba5667813294a7fd616cbc75f
MD5 1b39e2ad0605091c462670518d7a453b
BLAKE2b-256 b0460c5377ce28867b6bf1e7e6423d9f8ed567c2024e7cf6fc487ba63d520b68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.292-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.292-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2ed43cf8ed1ef37c193d021e6d2ffb0bbc18c895455915c89c1516432fbf641
MD5 66151f65e344c11cb0b26176c187583e
BLAKE2b-256 eee34a5366fa9c594350d99c493a82f06c180a19c7a42c560c77d91e8bbc2ea8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.292-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e96899b4812e5d3cdffe7b935a50cbbedf23a548e34eea3937f54656434d435
MD5 b009fab3644a24d5b7487c530d8f2e94
BLAKE2b-256 2f7dcf993cb12c6a8278ce18d1b8b812b8a154665032cc4188e10da91239df67

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