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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.680-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.680-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.680-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 087e643d2702c4845e8c0f7c1c7dd935aa81f150c1fdf6f5a5577b68defc8fbc
MD5 18dbaa1e06fd27f288b4a40120ef8832
BLAKE2b-256 1cfe436748b00f38cd0fea176aa9b315fcdb778116a4b12b1977c21fea5c58cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0ae08d7500303c74844d4f075321f3a4d068ea45fc22c61cb9c307f1ed2ab613
MD5 a1ae174ce98e18874d0aba7f5689b379
BLAKE2b-256 c6f3f88807afae625135f4e67a25e630a94b4124de1a547b4a72bedd681e7153

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.680-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.680-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3c8a2b6acd8f0635ce2b025142a4f01774287f23c77a818048fd8aa72d9b664
MD5 017b5fb1ab9ab34c60936d257245616a
BLAKE2b-256 fc706132cb276c50bd9e73b6df191c0e7181a4eca450e2d5353f56e0a6c65b28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7381017d6a670f47a8d8ac671b15d556a0df97ec02830b9737732a816b9b1764
MD5 01a0c6e1fe726b3c464c1435edd8a9ce
BLAKE2b-256 a48ef0ef5525cb2b0dbcc3b9a09d6c9f268b5a3b41e04ba90de73e688165f31f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a0e2b6619d60ba8ac15fe0732ae123efcbaf05991e54e233e94583dcc6bd5adc
MD5 b9294d7b5f55da0a9528f2961916f974
BLAKE2b-256 08d98dbd517e3bb6e12daa8b4eb997e2a8073e9c6c6453f7fcc46a4a3fb0336c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 22106ad174467d8b634fa656ab00ef73db06c91941bdd85c512f61388225e8f0
MD5 67b65ecb3139a544586042c75f1ab0ee
BLAKE2b-256 2f768ae42a72fbbecfba6bc7eea0f318be76d38be312d68fc6593d3c85fc9d54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.680-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.680-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc663670bd430c29aa0755fe6e617cf1bf42be8b67aec0d4843c9b1a211f83ac
MD5 588be07f5c2463aba3f58237864cb544
BLAKE2b-256 6f1fd59d2d04f609f3e93e4428bb312fe08c1729d4dc8d054b5e3c87e2bff835

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bedcde3f61fa47001a845ddd02885324696ca26d7ee2bec4acde2e87d06a4bf2
MD5 29af2e185e995fad9657c6560fe15998
BLAKE2b-256 a65c22a60a4e824fb016511d9ef0507a17dc40b1ebe2479a14698fd8e2adf395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e8bdf8e66771b183d3ff72ef5a729a9c0010bf404e103adb614536e605737515
MD5 caf1aa52279d478c4dedd9b4ec1de8cd
BLAKE2b-256 9f4320dbf56f1f736f4c1434d04e05c6932baaca8fda842d80f55709e63e16a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7191df0afc70df99686ba777e0679701078d2aaa24bfb8beb1f67046644e25fd
MD5 448fe0fd020ed148df5780b8c4004c18
BLAKE2b-256 a4263087086c69f1281908c579289a6b7b330de0c08ca3cde98b7caf20ab8ee1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.680-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.680-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8513cc2b4fed259fb126fe0dba1758c0722f305f992ce2c6d8426ed1e7db28f0
MD5 4d1d8cc2c3265d97c9901a716be49bbb
BLAKE2b-256 57d4a80c4c5f3e69c0aa559dc337e8f0ba1c3e1159a80da7074aca7288727732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 570b5af28abc11ecb0264a5bbf3c41ec70fe174f293d031eae4f541d8b6ac1a2
MD5 3bc6cc8f72fd1f4b3587cdd747ef6373
BLAKE2b-256 b1b9dc8b300eb161b873906c24f25b602310a57ac0850076a7344331a42b441e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e70febebbc29a03177c83f83cb46404d76fb421981eb323bc250174ad0df4430
MD5 0a7c7681622a657950d19cc9e6451744
BLAKE2b-256 b718018e58101db57c3b2d35a73f760257ce8283355f79bdf3c8c75bdbec64ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 83046cf6366675dcf3e814f1de76c24404c479d90cc19a625de501ce55750c4c
MD5 b4c495add39344b2941a00a56b3618e7
BLAKE2b-256 1fa373c06ba83c87cbf487497836f7ad6b915a5e5abf7b199917370ffbe6f02f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.680-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.680-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d20e93bbcb95949659428e4397718ed5f77dbac768204d28d3ea983e53caf8c
MD5 968a13fdacad82f2376d2fcc4041dc6b
BLAKE2b-256 0c8afd45a3ebbbb710c47818ce01b4554031da2d3f8719de7cac04f11e72e493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0035ec0a8a2d45c5ca945cb63521d0c7725ef908c6c27e9b9381ce9ce9af2d76
MD5 ffbf0fe0daa2692b3e7316cf243adf9e
BLAKE2b-256 9ce5dc86d0c861b72b66a555527c345545daee2156478f8e6134fb65191d5f44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a4c26f454c82bb99ea591610684f550d36053bc78a0b12c1adddde31dde8ab7f
MD5 4db228eca69086f7584301c5cff19819
BLAKE2b-256 dcd4db2ad578c447fd5da63b47c6e390964920389e16186e6b01b2e7a8460e8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.680-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.680-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9d8f38c28417ad5b5d7fb65d33bfa67dd2e1b05af1d42c8678424cd739d75cde
MD5 d56b730c4448af88444dfd639f80cba4
BLAKE2b-256 a9754cda1ac15d6147b878060685361a916f75a853b5463544a8ce85f4bac22e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.680-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.680-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f6fd18ef50eccd8d431eba911818227691274ba6ad4857c77ed2c9dcd40cbae
MD5 95dd090dacab039c303704e90fdff753
BLAKE2b-256 c2b4ca1f6dd37e55142c3328435e270fc4492fcf84b7a198b6876f265999c34a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.680-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a85c332acf15593c69bc25ee817dce2614b875115065a90dbd9b9d46be01290
MD5 0cdebbc2a7b28f5ee3224e96501cf8b4
BLAKE2b-256 0d88cb0c9677b4e5889c1a9dd52f76dd35585538301ed8f308e1b811860cc271

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