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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.10-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.10-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.10-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.10-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.10-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b110304d7bc713a60871957e1293547d71fa8e013133fbdb5be837444c4a26b3
MD5 ba72c6eda5961a3413402949952becb6
BLAKE2b-256 b6f82d1825f407ba3bee29aa3dbff54a3dceb7d144fe031b7204f6d9f63102a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7e06dc0b61ef1749f164b635789668f026cf45d125be362448087dbd4cd96c21
MD5 ac177384b7e549ce55dbce948dad2256
BLAKE2b-256 81850d4faa52355142a2df63dd1a94df9e73258255f24ac13582258622337893

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.10-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.10-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 affc4725ceef78b72ee723666b922dae27f01802194207b06d07d5ddc73f77f5
MD5 202fd59d73b92f0c973e6c3befc45d2d
BLAKE2b-256 87d38d7c9ecc4231f97c83c7501396b82c21a36cf3c7840ee1163c5943625b3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0ebe3c04ced812901350f75dc47a06b44c75e810948da00c2d2bcf7644e5046
MD5 c99d1d67ecb62b7c9efab9419986bfab
BLAKE2b-256 11b602b1cc1a06f8b7bdd59210cc4666dd0fab0f7bb715a700e006f0ed24c786

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9134797ffd2a76767a43904990c391a42b0b2d5739ab328f5d6a57f52ea0eecc
MD5 6e8a7d664f833509ba70c949253a189b
BLAKE2b-256 9acda5be75defca0a9365c18cb162de00ca3df649dcfec8dd3fc1ea1d11c60dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ec1b318fae9c5261b15be8ddf4bcbc6c861399eb8625cc32e1164e4f49dd61fb
MD5 19f3f3f149a75da851a9a0bf7ca6b7a1
BLAKE2b-256 d71a6479e9de93d7f1ac8906615c3ab3f6bfcc229a08b74f4cfeb7c0164011ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.10-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.10-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84aba19ce44b86721ffa24182fe832c70315fc303e325b32bd71799c2a847ed1
MD5 30cbbef1906a84c4d24c4b0bb4cc29e0
BLAKE2b-256 ecb2789bd890227c33d692e255727c7aa4da017b1ebbcfe6ddf0a72f0e218b39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edbe67d1e9f02c7450768faa8bc3f21d863c27897073f0a5ae85153f32e3db5a
MD5 ef024ca11ab0c902bc8aa338c974fe40
BLAKE2b-256 84e9453ad0ee55ae4556debd304fd6446d9e06204f66766e002860d5bab3faec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 66b30de48c2d7e34d1f11e3316a65d1f14a916051d02caeb974f7dae4536b8db
MD5 e014a5daa6c863b096c2b5ddfdd180be
BLAKE2b-256 efcadb6ea8390e67a7787a2b0475609c8fa4804e0d56bdc4db9411bf17e3994f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 81b035a1f7f4dba110f92216934459fcc08ea55050a8dc5a7d7e24366c5a47fc
MD5 f818ec72c392a4fbc999d1384e4e265b
BLAKE2b-256 4e23e0340efb5b6a7ae5ceb660c923b5e09c10f8302a13041f746690593b5307

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.10-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.10-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5fb8725b5219371619c8790a6f8838318c5a174556318f40e1a32ea517f4c10
MD5 4d976fe7b8f65f48ff6c9df72a5e26f7
BLAKE2b-256 6d64a03c6082c3186bdc19d44a28a7c791a72cab5970d66e5fd8a28a323fb712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 987ab1a2632bead1c1b601bc6f57ffd298e3f9a1a769c4a972e71e0cc09086a5
MD5 9339280de79c4988b34cfc7b02c2302f
BLAKE2b-256 fd507754beb7b3a2f11a73c6f76764fe9461c7912f817cdfa604bef9a626d273

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6ee746b553e1b1f81a9dd3fa209f8fa587ff10bb992d6801c0ef7abc63dbf3f8
MD5 eaa9b73401d63e3fce91459fb9b73b3d
BLAKE2b-256 544d835ff5e750ed41bfe46e2b03e21bd2b7fcb796d3caea55dc5407f86ef7b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7744dc0f52a00d208fa1f6c746f864a8090ecd2adb9920fd0764357ad5e16f5f
MD5 6164d2c370c2615b6462fe029afe849e
BLAKE2b-256 ad9570541c3a66c45268d3ccb9d422c34a3701a9cb50fe752be8ba3e5f51d6e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.10-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.10-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2d2d529bebed4a53af02222f31ca2e9e89d2d868b4e63de1edeed057d692808
MD5 785f10b6e348a64eb3eca250a3f3db31
BLAKE2b-256 c56cdfac52f573d659e5f467ec1c509021a7921d0e3474991fe45bd9b733cc30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c48f1f9aa63edbf9ccf204b2ffc32b94620eada23f8194a855a7d5bf283b416c
MD5 28bd2cf155d60e797272ce2a2c713a90
BLAKE2b-256 771ad2cc338a500bf24ac9827337c1ef02a833cd6a5daf17771616ae761f0c8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1b023fd050355a7b807777ce8e4e2779c716e44a865fccabe7d821f52ee6f0de
MD5 2b9bb172e404190bd595e52ddc89b20d
BLAKE2b-256 fd64587763197c675cf502d366f7a20713b1e44fb0775757254264303e61a33d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.10-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.10-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1293e44d89bc97db60c8b7da93da3c3a82fc7970d8dc26b2f581b52e752b2944
MD5 35516e0f2233b599b47439803b57ecac
BLAKE2b-256 10197bf3dba75c423b49dc77019b8ddcbf33c7da573e97060796554d4d30ee08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.10-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.10-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 526866848ac477906f75efba7ed531d848b63191d525eaa1e515258d78e6b34a
MD5 3d5be83b057bb7c5e57b814d3bf375a2
BLAKE2b-256 b4a4d03650954d43e2c413b884eb7c340dcf93a2ef3ac15e72b6823b026a751c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.10-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eae9b782536cf6755e656dd7975b0817b26f782603ee09512c4279fc6254232c
MD5 9ff9baa86dc24bca4c6a4e1ef7d1faa2
BLAKE2b-256 3485b0754d79fe193db609e1997ac7e5e4ac1c4788a363b7fd355fa6f6283288

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