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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.506-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.506-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.506-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 db908f65ed6b890e75a8ae0a3bb64ac3ae5066f817d4e448bf9a29dd533c3c62
MD5 b49b0ea9a7f5f4ad930fec2a4619b653
BLAKE2b-256 fd10d79627faa9c00eeb99f6dba6e7a7521bc1214265135709ebd977a22e94cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5143857d166a69d8ae1d52fa691ef358d3f1e89df44ec8f995f166c9c2f0984e
MD5 926deb63819284e26fd2f9c9de103c51
BLAKE2b-256 532e88acdaecbedb0457d8363baff85bcdbf143cc522d7b0567637e552ef295a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.506-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.506-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 042c7161c885b3aabab9e7c0f38105a3cfc6e35e2050a6c6e6d00bf365232f36
MD5 26a9ddddb200e7534966c1e8aac08c75
BLAKE2b-256 d9c05ebff69f8844408d9cbfdfd99eba51cf1e5e93014dcbf68012ce601c76f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d33fac0ccb3e7d71d48983427cd4e37587c286d4bcc47bfd2e847c8388eb0aaa
MD5 f1e758185af29da509c39ad5780a3ab4
BLAKE2b-256 098a2e8b88faa711a9ef32ac7b38dd343da80ffb9cbb29e3c947da97387a0548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f9beb4e30c3f96d8ba5c346715f090cfdd7acd9d099022faf03caedaa20a00c
MD5 ddcddb1861eeaf4bc7231f34772cdfc8
BLAKE2b-256 5737ea9c64231f4709f2f7232fbd922551157e4b883bbdcd9c68ec89ca94ca1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 65be606e47a9779d53265971e35fc952374b21132c2261ef1c8c77aa788314ae
MD5 2cc55cd34300fe5c7f8874471f097008
BLAKE2b-256 2a026285fa27e8e6c47bfa9bfa045baec584f06fb66bcfd6da4276dd84924787

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.506-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.506-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f3bd6c36635c23142420e271e8208024d3e55b891e1732c813a73a763a291b2
MD5 14775e9ec16e58a6f38691b5999c8feb
BLAKE2b-256 4fbf73b8b0851076bf239d3c6403ae25110e631e940cc4d8e324ae9f1287e99a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3347a5b1a0714ee581e48daa453f4822ddb141e6a8360dcc488cac2ea55bf81
MD5 342d2fa37847750d34ad84a8e8c0f0b4
BLAKE2b-256 9b3d9b6c8e7ddffd76af0c175c2cc3893b00f2d2da46d41bc9f6fa1d011ed0d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c14728fe12122d1d04b9de2cae674ea3532f774ef98515587407be2513c99b68
MD5 0047ae040ccebd1d85a9588002818a40
BLAKE2b-256 210be5e509c477e0876fee53dac2a769bd0697cdb3d2bd9999b96eaf33b7b281

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c77d12b1ed3c2f38973b199cde47b2d81642f277194247839587a20406c0ed65
MD5 f0d617a08c59a5c32ccb449d378e3600
BLAKE2b-256 d293ca80c9b2bab0160f77d504042d08374c4ec1b2bfbde9b14a50433b86a0e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.506-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.506-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e356602fece1a43aab25b9349e455511aefb1c396e7e1292f19ec980ba78502c
MD5 b392868cef2ee3b4a47a034af9d57ffb
BLAKE2b-256 b92d2abcb143e6ed865298fb46083352f059e36708f931b93014a886f0cc3fde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7befcd42303c61164fea5fe3d0f36f5ea44263582a8ef147d173fe11c8015268
MD5 5d5138d275c511f61dbe09de74785d1a
BLAKE2b-256 c4d5ab90508e3876a357327321cd260501e1245a4fbf97074175e62a708c1de4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8fb2c23615b2e8911574f5837caf6a0f1c243f2036c4e7e02b9e6937c04d9d0c
MD5 486655b0444a3fb8df42f0b3956eecd3
BLAKE2b-256 31a2da9587d2253c9923ccf33857e57a872796be9c9c1cf80cb6522c733a1722

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f1fc2580c5bb3a65a05469486d241dbd0fce6a85920b78fc2b7f9fe8d5b1e27b
MD5 69ccdc5bd67597a221ac3be73aae0215
BLAKE2b-256 f49abe6c9831146362fd362fe3ee3e27651ea2e7163bccc1b4de83429acdab3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.506-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.506-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73608f93e91cd48a30a17263f831d76ccd60e63bcd5175b25f45bb3b39ca5b57
MD5 a7987be70c0ef52fb59f77f890fdaa85
BLAKE2b-256 127625be22be66fc25ad96b664f04949f4d80b0177e7c029d371d64008a4dca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e43cd136fa5070ff17a94f16c77f612e3ca0fec8a0032b3b461345999feb12b4
MD5 8fde56b18b2a43ab9f27a21c06d7dbf9
BLAKE2b-256 32c0393bd22601e995733145212343160df06fd46a4687a12d6483e0b31652ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 01cb448cff63b22559586c4d404f0c1b9ed3f515ba53995c7f439e4515e5c2e0
MD5 ca46370b13538428f8a18ee54501a5e7
BLAKE2b-256 1244798f812bfe5f750ced0ef19715a13943865a55b83a0fa2af980d687ce4f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.506-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.506-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7be263870c622170b9b73eac24be888f41470b4326ea69a1931ab346c9b94885
MD5 1638e13f4911ad22beac08b31bafef91
BLAKE2b-256 19323a3e915976cd9427175fdeb4c1929143c534e2f7da7044e3562b6255ce06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.506-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.506-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f270c9ff790a86d606ca4f4a70bf4bdb44dc41d5b7c0f00ff9dc669353640551
MD5 3b1c62089cb1369ab3b5d0ac38aee10b
BLAKE2b-256 ecbcd22c3e6c7a3f93296fac198e90609bc7067db81925149843ef00b7746fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.506-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ec72ba8c3e554e69a9db2947f77b99014da2ded4cbe4fab0e2454b9cc2128a5
MD5 0b00614f066d1727952e031fe9e50278
BLAKE2b-256 4b2ffe78163e1ee815c0e62b0bde406fee9e3f15ac9895a94527fe61e4c94104

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