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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.434-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.434-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.434-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 656465b769e2bd477d43287bbe9bff6befbe7aae55fc94f02009d029d773db21
MD5 0637db17d72d998f22f2e3528dc7c0fe
BLAKE2b-256 52c6eb24191ace0ce3a21d6e438053570ee1241be83e92f017886d24cd55bf19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 453703f2c8467400bcf26a4f1b932f46b3345e9a0e5838022a023ceb03d526e3
MD5 2d54f7cad23b1e8a82b28d961a87abf8
BLAKE2b-256 905174de0011c42b03434b36e406ebbb43d9d4e684c8b081399ea3fa71f0c948

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.434-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.434-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9201bf6207ed8da6ccc434d14b9c0ba6cba06830d89280eefcdd04b4ffb5dd67
MD5 e24cf7093c62ef7d903ac2088566b107
BLAKE2b-256 63346e61033a840ec6d4a6922c0329896e9243a5b25710257d228968d95195d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e42d0f6ce13d0d3c89db4340611386ee5e8532553d99f7e24551fd95fd3eec63
MD5 7ed88e6d00cff136cb850e5c106f1ac4
BLAKE2b-256 92657a133f2a77109b972e1b0c15229bae92f76ce5d5d1abba5d00e925e40ea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6ab9d42b425e699554d1934580c7868099aebd74014f5c3933c8e9714804400a
MD5 34dca0f6f8127b6f13c8838b3e4a7b3b
BLAKE2b-256 19311194bef2ecac7506c1952b537a7923009c84a03e8ead613b6d2c454ec5d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 49ebf2f45eae01d62ec188f73050e89be760c6b9e22dfd24a90db4671e9996a3
MD5 2366f9e60e8646129ed5eccd00e1a95a
BLAKE2b-256 3776c109452ce2f32b761250efb3888ecad277aebdc2a7af37002d516fe1cbf2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.434-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.434-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f559cf47d7f827dfa3990507224a024926b20fe96e161ab852ea03c560452eae
MD5 6b0e02ed4375d928aedacd037d338bf3
BLAKE2b-256 27be65199fc187d0a03a7b1cc99f74651a5273b35f0fa6854c7775df8b9987b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50feea89c695c62c45bafc29578d7c35dde8c83442336e7fb01de550a55525e0
MD5 d155f9b85e21f282213f8bbe1b42005e
BLAKE2b-256 55cbddc0e14a106b24b991aadb9a5e83d7d94c6a0054bf5b60705619c8e21423

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5ed62af8bf54c6613bb38627f03327a6fe323ab35551d6d24a50dc2248b2b4e2
MD5 ff9c41d4fc2c4925ecbe6d1405280b4a
BLAKE2b-256 93aee248f0ef0d528f3dd21040ca6a3b15f13ef57ca172f4eca45e6891500925

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e0c9bbe6aff51f3c924f29c7c29a63e3e235ce51059be4695809b9b15d34dcf3
MD5 fd420eb57163e80dad51504128e64b64
BLAKE2b-256 1e870e9b422b13cec063a7a5a1c3beec29eb658fe31c1fa96a135642ede91160

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.434-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.434-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78c145bb5b229ad49e1d5604b591dd275cb3a2f56ad850cdc604181e75a0e208
MD5 56f492b2ff24cf3616c2289aaecea706
BLAKE2b-256 6546cd01fa081ca028e7e8b007f8a1fddec99832d67d808a858d939aa52a7f52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f8ff71b6e43b0b64d96c5d9355c186156548ae25b744791ccf18aa166fc6907
MD5 1047f92163d15fad6b2e291f70aa46bc
BLAKE2b-256 48e8b528f75b6f7925f4db73b882abd9f27e411756528a00164478cd3ff90a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc56651efc62723eacc2b49b32f9ecf9e298cf215ed1f1b96a0905841be1e81d
MD5 cd610de103517608e9d958598ab7eeb9
BLAKE2b-256 fc6f6298a7420c608e629d201d31a2ef416f6ea2d19b8b57e3f7f7f087d82f69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4bcb41810fc0b76a4a6a75f068951e12ec14ffa62ebcaa831d01d5531df9b91b
MD5 f1165596bb1380a0f8714ceea9be2af8
BLAKE2b-256 23ef63ff192dae8b2eab8ae4d6ffe8c5d0d09762a5d59a64ec1f48471e466033

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.434-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.434-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 597f068f40d9f77ea922f90415568586efe338a1a7a701a6561787406761e523
MD5 d44e0e59f0b0245f8e1a4a2029756cea
BLAKE2b-256 468a60ad67df04075da5efd6e7e994fa4c77e35e9f7f03ad2fc79ac5b931004a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efdd21479dda7708b8f709de09889e21301752e6a1692fec84bce51d53669226
MD5 ad5afc3dc50c97cd196b7a942b097555
BLAKE2b-256 0aa19d7499c476a77eb550ff208935d5033dbf930861e85a6eff4f3baae67dbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5e06bcc506ef6cdd6d2e5dd495eb1e30ed37f04d8ff908801fad888447427dec
MD5 080cdaed13429961f2dae8cee254d5d7
BLAKE2b-256 a55b9062f348f6f899fac3de9de4e208e541cdbec2029ffcea76f57f32c2ea18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.434-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.434-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 18c4b41e30ed205d8955f16c706e14fff482bb944e17e3256ae8645039a65307
MD5 b0cb0fb01c6a75c261b0a22df9ef168c
BLAKE2b-256 2312a70a6a3c790a15bf8ae46ebcd54adb9683bcdffedbc2badfa7a002ccfcc6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.434-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.434-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80023b4709acc0e6ed51e2731d46ce40cb280d8697ef3a607d68cab2f6dc5630
MD5 f57d7758827f050fdb3dbe624d08c2ca
BLAKE2b-256 79ef15a3220724a0091953662f88eba458a56981fb44751a12de439c1165be0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.434-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d2386db77176f3e2644f63566fd39672a7cf6d894f034aced1a6cbb746acd57
MD5 6db0821b2a821a1911102c911ccf402f
BLAKE2b-256 803a397f925a2b519646985531258b07016262985082a50789cecdfe9bd5d126

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