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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.704-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.704-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.704-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95b5081adee79b2f34f8f3e56cab76ffafc21edd9d64910a9e9f6d3259ed893d
MD5 d53793c5b36ee5fb1ac98aba9d7998ae
BLAKE2b-256 f0fde46f7790d48cfd0139b722a91bd2e6b750d2d79be5615e83d196b079ca92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 45134a507b807ac805a0da397d12a68fc3967b598b0096c8dc986a267e38b200
MD5 cc84a4f8da895409d84f809077fca242
BLAKE2b-256 d2916fc9a82818c8c653aec8310bc622c8ffece501aef8c88e1cfa24325e3e51

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.704-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.704-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a2b621c55b55cef4260959ccb91f71213477ee273eaa95c54e6cb2fdea60e5b
MD5 253196d4056dc6339724aa63fee033ab
BLAKE2b-256 c247e551c3ec5195fef40fa9652e895fc93ea5709bc371eba09cb58778250a08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7176bf650f6107d41a18f97efe63746e0342e678dc8f6958e8ddf5e76cadeec
MD5 5db3e2a864fa9f7ce3c8bab71a6b1e9c
BLAKE2b-256 74767bb1129afdcdec9c47c64cbfcff2f3c6a48cdc6a61b68d59968c5b3cd3d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de59da2260d48c2b43c72b55a726a717cd6779ec47b2083cfdf248b613176aa8
MD5 365c939509b46fa26a7d85fe50ab95b8
BLAKE2b-256 ab40e22680fc7251d35da480b4b6c483d1fd19f1bf9e951cf17667da0a7dec1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a79c02212780f6411a29bd6a520e3234465a4a9b439cf126c687aff0a652f295
MD5 284bf9f20c1502e79c5bfafc09b3959f
BLAKE2b-256 6f87126e95433a46f204e673a24643615d6be59a070825d78da17e69ee529c10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.704-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.704-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46fabbb470e8c4dd8d136908a937e2e06a85f6ba726df729242f90d1e6395737
MD5 a16a785e361f3406292a1f11c9cc59b8
BLAKE2b-256 96aa946b471fbbc812cfd2947b8dd509042780a4656e7d697600ade15f7759f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdc01c172d7d223f4110778e6ced9e4506707249a919e6796490564524c570fc
MD5 958544530818ef8675179ff8cfd9998d
BLAKE2b-256 702431bfe76f71a433dff8f240a99844485ac5e05f6bf201d3f2e20e41ff9e20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb533e342fe551439001c491c0cd97dc55022e2f43ce1b8db8bcedeaac9c3441
MD5 ab5b606b739b93f989571a824b720621
BLAKE2b-256 55ede043fd315f3094c2de2c9864a8046e6a075a6bea343c117f34ee85ccd35b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d3d037cf7c1beabb99e988a2225dc1640927a1f621c672fa3d5d9be4958cfdce
MD5 708ff94b10db375edae6bc7ec1a5476e
BLAKE2b-256 4ff0db32f83dd0f18d033f4cc5b1f3c733555f2fa915c3ca0d214e09ee4ca889

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.704-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.704-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9c8c2058957f30718b5d00cb4fae131fa1b414f227634265693d1b97b64d65b
MD5 d69a979674d10bc8f7443e12893b6774
BLAKE2b-256 3c5e9ff441ff6304f3b75fb3fee8f8ab1a5d49a7fc3c77df24b0f8480a95f3be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0148af2f744a1a7959cd97f3d65eaee5481b5f9bef0cf26f85de76e25489dbb3
MD5 a05ac768989462deaea852c4e5b99830
BLAKE2b-256 c8786510426424ab4f1bb9bf862b323a1a6036fa771ec7b459b55e0570f3fdea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ca2b6f846ceca4ae4009d201406177861bf3dc968ad6d69ad0eaa7f69cbd0c51
MD5 f7a88fc068e16e89ac83088119781f02
BLAKE2b-256 bc64f6120c058fcf158223a1317bae0f754758090717ad05d09725c4a1ebaac6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fbcefb6716ef479429e64b02465faf63696403d5fdf9b7367ed837d618df6ea2
MD5 4860f8937e88df43b9f89b22ffdb6bb1
BLAKE2b-256 3cd58cf6dd21a7379fe68aacd261d273c3b22c01355fd923e2a5b7d5e721dd19

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.704-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.704-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcd5990f48c71822b3dfb0029c9fa20255697a2b8acf404394c298688a45c1c1
MD5 97c5f0008304812bf3d9ec9755c925b6
BLAKE2b-256 10b5c5c074e136b965f4a1d0525c9f62287db3a644c796091802de8838f011e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9057493f0b1aa82b402a6edbc0f870e6e34626f45d6a4383bdbad34a3d957120
MD5 e6e1874e2cf4b89e04038db6bd12e8c3
BLAKE2b-256 ba9cf34423b693e30dc7d60013247ee6ee9a8eaec9b3a0e221a077e795bd20f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 706a465a31177b864e4cabb7b6911b0eaad9ab6e9755a682de667067d884d844
MD5 fb5f9530c432c616e4c53b24375f90c4
BLAKE2b-256 9cd018a3a6d9e3161c329d282f629d2c1504c71e286f41b04b4f3a7fd31db35a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.704-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.704-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e157ec18a694386cf18c92c70a05acb8d96b58a84fe5bbec2f35cc59c7e950d5
MD5 d9833d0626043b282fcdac4bef20c9dd
BLAKE2b-256 7858942c48caad86b3db667bd9e567fcdb68b48bf92d501c2c2987a2a97bfcc1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.704-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.704-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f08f4c7e153ef75cddf58d26ecbac2dec7b9071ffe58aac3b53b4b741a4bcd76
MD5 658064c9c39a7266b7ecff39460aae39
BLAKE2b-256 bf01b0564858aec19b958c3bb733af6a68228df7ada4f48a42c2493470526f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.704-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb1291e91f772f798e88089841549157aa0ea624141f77ed96366a562a88d2eb
MD5 c5624cadaf08a6fecb79d46d7e43e7c3
BLAKE2b-256 60388cc4887f69ecb99a5a7bd733c20919013f710b66ad8a96651cb83e673a2a

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