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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.421-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.421-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.421-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5b7237e21694a83ebd3b7fa05a031c1f8746e9645afacd785bc270ed8f0cbed
MD5 8fe44c359474bf546e06910c7ff583d3
BLAKE2b-256 aebbc1480648cb588b589385c0930730cc143f7d41010a63784074d01b967478

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 49b22de621cafb3bc8aa44984068bd67ea6876a3e5c354fda997e34f1a529ce6
MD5 170a8ce04eadc5b53290d5b4285fec9d
BLAKE2b-256 98d55cb3c58231b90f04724bdefccaf7df1b51c9be380b807e9b58860a47fede

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.421-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.421-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e09affbe2a736e0709ffb29a1ac594a95c1c3373801cd60adc5c8083fe83fe2d
MD5 6771dcc45e8b2abf0ca7d0ebd9427ba2
BLAKE2b-256 9916613569a55c71379c82e23f78796076bbdb66a896aa0face3712c88032714

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4001662b4026ac445f53f98a21231446081c787ceda5ffbf9728e80de4cb19f1
MD5 50e626f208be67e252128329da012cd2
BLAKE2b-256 3d26aeaf80a62ce49beb961f90d2b9d4208492d7f9d7afd8a1ad03a94f0f3217

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 68450a6b32f56b2b26fecff2b672120d0cde45faa9ec2c11598e042b4f735c95
MD5 891c29a9ead10d8fcb21cc31b2633c40
BLAKE2b-256 2f766fbaa7fc03091eb90ada97a7bc3fdadddd84d8a4e37631f9ea861501a439

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0e4210e9471282226f4c0680bca007d57cd86c2095acc239464c5c521a406ad8
MD5 45bb4d24e477b033dcc0ab936a1340e7
BLAKE2b-256 1c1b1a2b68a4aff463ffa7e26f081daa774bc900988b7c81be494afd1b41fcdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.421-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.421-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dba20771ae01519d6279cefc08d0c40aa545abc8a791be36c1c14c6fa232477e
MD5 ef5a45a2afcf297d05277f4ff9ef3941
BLAKE2b-256 a22324e919911edec9253cb033a8cc4f8e383bcf9ba0b28ce63c322f9bfab126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f45fc8d7e10c549b30718d1ce0a3100296bac1a11685ae28eb495ebe4f07a72
MD5 81db7326d9a36dc97aa729700a126b58
BLAKE2b-256 d4695039be37b2bd167b4fa90597e477984d0b6fc3c103ade2c4bb3a3c3c4ca1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b339e312f648bcc842bfa703051870e246d98cea7087c0373f0dc5eeaa9f9ac
MD5 7e209ec01693a8bfb7094f00935e870a
BLAKE2b-256 50a0bb3db8870e9cdc1af83a21659fea5dbfe68beff9c9f7507388716208a349

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1bba0f623d296bb912957d7d4b539911cefd4f22bde17bdcdb93ed6eee7c2f67
MD5 502eec7ca5fc64d6473c75d8dcfa608d
BLAKE2b-256 908de7b987b3be3f1f3bfee7fda49ebb31e720b66e363f3fc375330ca8cd1232

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.421-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.421-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9111e966f4afba734aff00c5bee85a96ad8a685dce211c20da3e8d9e253b955c
MD5 94ba3fe2344fc44d0fa59043af224d13
BLAKE2b-256 6e2db3950d133b4e0c70c6d28589cc1b5896d692e084f9bba13eba995bcc9f94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe418e611d9ccc943f2d4f3b4efd6de73f8d31c9c3dc2730a8b77a44c6f8b173
MD5 1ab9f94454b195289d31863d90089d70
BLAKE2b-256 90593f7f870562514cbe25bf5c7c820547144958bbcb6cd7e856ac9677402d88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fb4da9fabbda52589ea5009e1bfded8669593574511ddcdd04b1892b75dc7eb6
MD5 2fda372310a90624204ab8fa4e0309a1
BLAKE2b-256 abcb6024d379ca9c8f8d2f2b1dd902ff0f0da3e015b53de0a1634d85a8e186d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 542e1eecbcb71d0c8519114c34fce53649c36597aa40d164330c9368546ae321
MD5 cf88187654f82ee438af988009401814
BLAKE2b-256 6e53f27baee92793e0363a83398230e89ed969d39cd25783ff5f72b2019ce0c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.421-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.421-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1251a90ec5a4c4217d666e043044d5600e2b66e08089d711e1677b5eb844a203
MD5 b9bcb9e157ad79fec14629c2a6870ad6
BLAKE2b-256 c0daccfbb191dcfa0257962b99e1c5de66eaecd6f2533c658a0870ac7d489412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afca2d698ae6ba86127ebf118a2d540440d6639d55ce0768455f96299c61d2cf
MD5 299de1d2c915e23e8221e1807cd0dc85
BLAKE2b-256 ce035974e1aa5588482201236400ff7d42ac430805e5e7640f2d7b1997737220

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ff4465b8afa7762adc109f22b97312a158fcebc8e1964688a0d01e0ffdcae88b
MD5 944ccccf3ea7ff7888358db2101e9811
BLAKE2b-256 b7b9cba14847f5677cc91bd81b4093a25275402447faab7601a2a5d32e0b4d13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.421-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.421-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 093d558e493c682bdcf04718c3b7f6c69306e9a408d86e889ac7648db264e67a
MD5 9b9a9c942cb315ca8b1a04e4802375d8
BLAKE2b-256 714debf97fcb74f07d65ab2acf7e2ed2b79664dcdd77e62667524ad2eeb2cbd3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.421-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.421-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ee127b5cd9d639581b5b849ae3b5229b8e9e572dc6c193f16b6fab46725c3cd
MD5 3e89ddadf3db9effaaa10171d3718f38
BLAKE2b-256 50f10a17139ed1f7b0b1cace7fec808ec9385109e35f9c3ea2c17559e5777862

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.421-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fda96035ab4283f01868c7dd32727208dade0e0ae7ef206b9cbaa12e7fc921ce
MD5 b6e13fe16004210cf1475f7cf399c370
BLAKE2b-256 6cf7a974dbef97f17d3f8d74b243ca26d3944844f5a07b956eca0b91ba8c3483

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