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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.577-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.577-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.577-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c3f84e158b95e9c34e035139c9899bb66acfb487cd2e42745c9933ea04d096e4
MD5 b13eee73c7010b481ef0cd7056e888d1
BLAKE2b-256 1d66e136e516cdd9453edd65877e8d4611a9f4ece4e65014290bb011fd658f20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 db8ec7379f3fc6bfaa86ff05e7376653ef112d4c7db68a5dd2aaed38a6a13d6a
MD5 2090ce3177da9fd0d560c1acf128f83e
BLAKE2b-256 a40dece2e0acc452f0e33b076bc7fa9aca8bc93e9666f5895928f4676b172048

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.577-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.577-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a75875ad0228b8fb7be1443694ab4be1b28d6524b888aa07cbce45aed02ab9e
MD5 15fcf66738ed36ed760f3e9aec3fdab6
BLAKE2b-256 5fc0d4690b96aceb414e5bf64710b84d2f96a07c38660b5063fef928be40606c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e1d94eccdc89b5cb95208552c1aeed429d87bb57a70398079f6114a842456de
MD5 74ce755f27c458e52f576fe98628f8fa
BLAKE2b-256 646e974be038e07e11370a0e3793d61e21dcfa5a4f6d691ec9e8d33921f60c03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e96ebd7a6176f7f511dbffc2215ed0672fbc07393e8c3304062da58b599db0f5
MD5 61be8793bcb3b7cda30ea6a0509d1d45
BLAKE2b-256 c2ef08d95b48ffa0fbb22cd84da8f32fa17c00158718427c6abf89e7b9ca85b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fe3fd6f76fd39cdfc1808966666897372b29d548d34fe9e9aef3c49280d1f5d5
MD5 019542823e1c7ca9df67cedc479c0991
BLAKE2b-256 5157bc4d7d3f2985e185192d4610ab104b671b45ce1c08e6e173066f82ba12c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.577-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.577-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0567bc5b967417c975f6b5067064bd10bc81d2259ab768bd6c408bff4bb1fdaf
MD5 bbcae88d82b051233bc743372aad5c6a
BLAKE2b-256 ca152e2d3b31beaca2a9a841d82c9b24ba1b39aa012a8eaebb10e37bbaa1cb91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa8ece85f4607310ce3b5e312605b1a1a23319f248991a408dafb5ae72730f50
MD5 5b894ae55ce5a25cdadbbe3d0fc99480
BLAKE2b-256 cb76618d19c06c733b97ae59858f27ad95948fbd072d339097b016f82ec299eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3173457af0b5bf754d0e8220233ddb5fce7bcf144a1f946ba4e5345c14c663df
MD5 fb312aba045d1bd35e6170ff0d49f71c
BLAKE2b-256 94e28dd8d2f8b5fa873ebd2082207e1a74bc5e81d5970d493c11eb91e22cfdce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 04b9a91d8a28cfcb7f39cf66b0f17dba73e88690b06cc13c63251f1277c09201
MD5 423426b1484fba240efacc6010ed9a35
BLAKE2b-256 043d341334f8ecc6de400085f2f2da4c95ef1f7e3282e3b3cd903e7713e88ebe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.577-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.577-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b8736a4523e03ce3375ed51609434e2dcb7ac63e2900e164d59952d637866f4
MD5 799557c79daf1f064863c835313cc328
BLAKE2b-256 b1d60e8668f20bd2f6066fd7096ce87af164c56e2158f13f7f150f576711976f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f844be28a6f753461e2b69ecce56901c4adc91a26142367faef75047ea436a08
MD5 70298487dbd38585efaf33493de536f1
BLAKE2b-256 9983a8a85d59ec4acffdf0f69c7905be8c118a166c21a9ae00e7dcaf2c9ec44d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d3c9df536a87b2cd4d061f9f83bf7245285d734080b9f843b0c3ecec7f8a4267
MD5 5e85fa523d993488b5614d92a34ba345
BLAKE2b-256 aeab00c936c2311f3508f05a9952cd722c3b7de6fca7f2522c5de6fe3f4937e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 df8c9953f5a30897ade97dad7efd026535cdaa7492864de0803ba4964e695ab1
MD5 5674143eea4f3fdc7d4dd60bbafd5789
BLAKE2b-256 d57cd8c8499e264a96c55e07c225f12e3367bc45779fe58b49b3a41ba47b7234

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.577-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.577-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f72d7ff3cea6e5b761507797531c6815c43a13ac02fd16d470f6faad18be031
MD5 b69ae57296996467a2e7eebbefb0dd96
BLAKE2b-256 92acac120ab31512075b20d934b7109f709bf2923e9d6fdb44a83b61d1a16668

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89f2fe73829722af5513ed02b4048e49cf17f8a47f993bf6d7163333b387e83d
MD5 3846ca0d22b68a0d499671ec105f85bf
BLAKE2b-256 75834306065c2ebc99781b60694546517fc3d99e9a0c3b02a7665f1122b3d3f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b22298273f7bb0b994da305403a0aa96856879967aa014f334aa46fb246cba93
MD5 eeaf247fbf403a8fa7cd47cfe4a3790e
BLAKE2b-256 6f68f0737463df07aa4ed8e1bbb4149973e8bbba0896956f9e559cc7f070a0d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.577-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.577-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d43ced01e0b7b2168a887f85ec5d5dbd1cfe49f32a11a0a2edccc0337a916b80
MD5 a744d4215250543d96bfa13c0a585ea6
BLAKE2b-256 03d8aa26ce4d7d75df3e96c28ae8014db2df0c51b08aa8304265f0aeb917d14a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.577-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.577-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58ae86b000b771bfac387e77ff769c980463c490309ef6e431aa3717e14f3b42
MD5 1b4fee945318120d346310615fba8bdd
BLAKE2b-256 93caf175260e0c061e74b1c065bfcfe5853e3d59d7b71edcd8388cfcf2c66d94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.577-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2390c7e21ec8085c9d03ec822e4cd4160746c8485122baf2100ba29b5f10957
MD5 ac6f12fea51475ad84f284c12926110b
BLAKE2b-256 8874eff8e6f7260572a4fcae66fa2f4a6142a1fa730c3b56bfe43bf840e3a393

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