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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.509-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.509-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.509-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b3e0c342aa5ed25a82d0b29dd441e27c003887fd6a1a35605a2c52cfede30c14
MD5 b16413e77a8c96ec33b755198d540c07
BLAKE2b-256 b09949fd929bd2d1893b7cda4c96d1d5c8ec4325f38d5d5adcd8271cfc743b04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 48882c9c63639be8e91bbcd6738ec90fb9833097870aa854139dda3e84c26601
MD5 a3acc1e6de480f42d749815d51d1d29c
BLAKE2b-256 42cbe51e8e4ebdd00b7dd38b530eeee5835605336b05847620a3144f61f19372

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.509-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.509-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 972afda6d75766767de59e64925499889dcebf3bdbbb885232e8c32cb92c0f28
MD5 7d45b2c523759e68a6488ecc5666c22c
BLAKE2b-256 9f5f5a23b3c68cc00c94931db599d8e2a198cefbccdeda194130cb4840a0e20d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 828738d826970e6ca23b107b43ddacdfb08d5743f0f7c4df9c400b64429e9586
MD5 061a10d779c0f9049a31b56f0b294800
BLAKE2b-256 ff152f86d4280e5686079a473626a2e1ff12b6f26919987afc8adccf3fb3478d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b8d49d0bc8112517f911a510ef3401a7a68c4d1248d975c324c3941a57817719
MD5 7aa5570489760b3ba7fe91d957667a4f
BLAKE2b-256 b06ab7b3ed92a06e794089d32ba732f4b421c6637e3ca8667a04f597308cdfd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 86f510754ab09f280ff80719e631c236e525f9cd8371b67325c01696d19dac33
MD5 9092df17ddb6db85a8e92ce5fafbd006
BLAKE2b-256 29cfc90363a9ac8d644bf9dc1ff9e157f3265c263a03a25b3745124cd58c311d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.509-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.509-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 812d7dd15c271f85bf54721c2f7113424f910e0ee58ce68a545fd9c91e9c8698
MD5 ec4407b98e3b8aaca71e37859af05be9
BLAKE2b-256 70683dc88c911e314ebefac1955b2624358c82c1b874b7c4ccebccd912073c7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26569286b205b8d58d438cf7abafd1d6d011117d6922e3ecf156aac3338ea41d
MD5 71ee78b4653659fdfdfa213f818594bc
BLAKE2b-256 59ada879e713bc41fdcd940fa55d47bd1d84e1ed441c16cfd9361415e5492819

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 62961decabbe1ce500b460d8cf807c5374ed3624e2d4d2a10b3fa5ee0f01f416
MD5 fc787a69db09b814fa0ca41e011d65d1
BLAKE2b-256 7221c9d4efc227f2d4c57d303f10d6af301f0341d773502fe0c1ba30d6726595

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b8fa04cdc674d8e0a3c9c185072d00080495e972d067f985ea2c50af8f63bd10
MD5 a10c5427660b15e6b5c6d6c106346bb3
BLAKE2b-256 cff9d39b3619efac7beb4755eea079f3d4a2db453da8f97a2fdbb36305fa3d0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.509-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.509-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c08e0ad44ae7dcbd284a5420486c2aa5ece706e534143997cf3695decde410d7
MD5 b92a8a3110d7ae6da3d6ace40111ae9d
BLAKE2b-256 aa279112c559c71a8ca71e5dc5131a4db26c8b1435f4f6b863d6fde05c6c950a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5d43a5c6b092da6df38509feda12642f7a6754f447603565b9bc398d6e5a432
MD5 f791c50643c56d5e176fd2dd06ea497a
BLAKE2b-256 39e4926722cf3ecd2d4714cfa6d8036ab7947e0251a44b998e4a460184c2c9f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6d2c3ecb63b49b60c2b60301627d68b6d60790da7c2f8e153410f7623fe22355
MD5 83fe95b2c0a471e0c11047e100208e0b
BLAKE2b-256 17b2e02d2defeb4bbf428bf9c48f86889eb03f019220bd25360eeb4e29ca759d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7fea36e33347f1704aa980a9a836213c87255ff4a9a48df6fb1dad6d08670136
MD5 a01140a377702ee73a8f20233a62a464
BLAKE2b-256 4b589e62c4771c73f58c137e1bc8bec968f8b5c43128153ef7876b46a72739b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.509-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.509-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14bee35dd0249f3ca6312f4621f2b0e97f6dd9096c1491b5c66a87f82d05082d
MD5 8306baf43d02070a61b5ff12638e7852
BLAKE2b-256 070f60f2c5bd613811deaea665c87bf65337367e3a31d0ea54aaed30de61c2d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4b889c52ab2b9fc9d19717416f853b25a55ac046489b8ccccbba5e319d236ed
MD5 4f3f207f293cc923e43d096c41d5fab9
BLAKE2b-256 24fcd268f2a7d4d9e6149762964850dcc7b6e1420774a767e3da2ebf05dae750

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 12f5dad594043a64fa02a2d26a69179ce72bba01af77f235cd7a992029c0797d
MD5 903e7defa807dcdc9d2fc8617951750d
BLAKE2b-256 572a703319e7222588518dba5b5651976ba2ea4791bf915da4593ade44a2d5d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.509-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.509-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 494aae276aec274d6a90ec14a28232ea7b7ccd7b7b2fb40845606f5e04659d98
MD5 50f48c6694b3c2b3b7c80a8d153ded82
BLAKE2b-256 21a8129d1215f54e6321b10d10b6535df00652ddf76b74f6f3a7e92d7f7a8d68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.509-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.509-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e94368dc159b971774563dd09a3faf6e132675e1a74cb957b53c4ff92a18bc06
MD5 b14b8b213d22e01759b141c9b9d703e8
BLAKE2b-256 fc72bc8bb8330477ebdeb9273328356b40a97402af60b23b161aec231cc435aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.509-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13b4ee9b134f3f6dd72d1ddef2000c70212f670cf4c2007633ed802c673dc04d
MD5 f39bca23b9084e5dfa450af07f5fed9c
BLAKE2b-256 511c132a7b1409fcd0770858a008f1288017a22fd6d45cd5979e81350d9dec22

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