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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.654-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.654-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.654-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ef2c4a794848763960e2463d553810a2a05575e4705b56a99f56a92ea13226c4
MD5 047aee51b944f1e78631f4442d44a7f7
BLAKE2b-256 52179ce7a9de9d056e68954734a63eee4e234381f07b3c7c2c4c06dfd8e545e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 406fb1edfc14e13fceef5a5e708c1c1e573088de965af28699b0fb28ca63c090
MD5 b5a33fd66b09ddb2d7a89f538f8a4d1c
BLAKE2b-256 bebeb75a578d4258102836f266d04317403cb51a1c8d04e7532f3512c50a9a69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.654-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.654-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ddef0722b5189cc302c3b22e5ef8c5bcb5e3090ea5f0a8281f40276ee1e8dede
MD5 e96ed317081cb73b65ee982397ad5298
BLAKE2b-256 ed80d4e3602e516748e7244026d49e44d899de7309edb2b2263a4ef4abd85953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4201e1c6e3ffde9f9ae4aa1b2d4e05a0327e15e9843135ca64cd48d6313d94ed
MD5 8192f7f45eb33c9ce779d3e97443d4e2
BLAKE2b-256 321bad72388109a5b6da27686c7a8917d00ebf8f941f0554b2fe2ed59fcc72cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec221ba1dacc6129c0d582c445097440c13066018292ebfa4a90b66c4342d5fd
MD5 c1136cbef6d8f69c6c42a33b4aa264c3
BLAKE2b-256 81618e9ca1280f83e96e147d8ca65b61c847a20329ef0ceceda33e512b0ebefe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7398a385cc5f60fea71f5fd778d83bf44b1d4110fa606e21e4f9cf3f4280bb6e
MD5 9145e0b592599fefcd4cd2dc813b480e
BLAKE2b-256 7426b60494d51fc2264a4b845f09897514d46e0b956bac8d34c12ea2bae25832

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.654-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.654-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5778bfbe41d801eef8a98a13d8b5a527ff920c500dc08a7b8285e6aefe9ce4ec
MD5 dde8da396445766c6668a38872f74b83
BLAKE2b-256 ae99174f53cf3e4783127ada5fd05d0a12917fc6041a7c2091b911167043889c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87e912f2cd1ae8cf97837292ba12fbc997b5c121d243465129c90755c029ca38
MD5 b9c3824ce95e25a5acd74880c9816f25
BLAKE2b-256 e0ed5770e38df8638488ca3cd54393cc5b693f3f424b597d07bf7a3c134a191c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0da94aa560ad6fe8d6f41537ac0d723bc9df4d46769826d1e3d93e48296edeb4
MD5 ba53cba484cac605170dc02d7ecdbb86
BLAKE2b-256 bb55dd803437499de1b397bd5fcef2685f140303a65fcd219fc65dd962b53262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1686e61e9c38688e0d1e0fad09991c19cfb3dc9d214838a9828a2031f7a58521
MD5 a9a68741831c5ca4d32f5ced880c3c56
BLAKE2b-256 92af8d45f91c139c1b9f4be3ec55cfd18ff7a345c13e039579265e06bd2ef34e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.654-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.654-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f979bb6b47b70d28ec2d8bdae37133044e5b7edba25d182b5e702378358fc867
MD5 ab32c9ccfe6e73b87672c73e38732529
BLAKE2b-256 5a8b1987c72f8bbe2aa4f5668a976c16a506f39c4cf0b2d59b85858c442b90af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7263e9389995a6e655406b6548282cf5f7c19e23dc3144c1116e03e323656f32
MD5 e80cdff495dad23c47105c344d40c20b
BLAKE2b-256 66c3ff97f1e963baed3ca6654375ccde4171635dba6ea8263c348ecabd27c282

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bcd061f97015a2aa1805964043c38f09609c786c3a2ec243abf4b8a1ccb87916
MD5 2fbfbfac6a1ddf2d610fc1023ea16eae
BLAKE2b-256 fda10223bdaf839f3fe2d02c5c3017c476cf6223953cd0c298782b77972fcbe6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a60dd7d8052fdf923101d107834f2a3a5d97871a23044e0103dc66d90062657b
MD5 d993a62a69a2a74404b4a8b2f6a400a0
BLAKE2b-256 327ba97db34ffeb60a72cf1ba3b1d306ad081b99fd617040896837f9eb11969a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.654-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.654-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72decd04aad39a3ff664d820cd6c22fc0eaeac9f4a2caec6006d85b5816aa9f2
MD5 a2ef3f6654dea5c72c9da15857863a59
BLAKE2b-256 5991b4d09ade15cd58f82b3819b4b0711fba79c7abfb7bec984417bbad4ea9ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e97d1c4d0e81455925d810e4bd6ae28715f23a016fddf8030dbd22d161c1d824
MD5 5c9b7961f8354c20785d230ceed3b060
BLAKE2b-256 5e8b7bfd2a2ace2deae51c9e27a21e6d4612157c13ac3924832048aa48cf137b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fb0377deacfe6950b97dc82d8cfcb32089d642fcc62507cb98c5880d39a9eb3d
MD5 7fc3808d856903538e8e988ef9dd870e
BLAKE2b-256 ee2858b6294905fd7620a3fdb1b30c96b44fe13a3b2531b956319f42c5c1f9ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.654-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.654-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0281a73644418f21c19999fbe5f082dc28535401c2f7f51cf9fac8d9f03e9553
MD5 9f6e2a092499c84c35c574bd03825dfb
BLAKE2b-256 695ab706ac7dadfd30ffbfb44625d2c7def527654a3da67f0c74081f52ddd3ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.654-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.654-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18e39da0e7d64695e1ba81ac1a573c4f1f02015927ac1db3c22a665863f3a74b
MD5 f5ed303819aae3cff20218d3d54f75a0
BLAKE2b-256 cb34750ecac465eb57f7d52ab36d5d93d1d455a8a912a7c697ae4c5d1d12aabb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.654-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e40a1a9ce4c8b0df9c31253a1031c9ea011b797ae5589b6f613e2a1b9656317
MD5 0649ba37cabd6875a92f483e33ea7c07
BLAKE2b-256 06df28009136875823af423ed41ab87c2db2bf2a75312ec83fe74f31ae986bfe

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