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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.217-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.217-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.217-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e2c054aac373745229b870e0ae4ad66ac36892ec52223a3336e713ddea2c96d5
MD5 a1a69031a729a058e924313ff551a1ba
BLAKE2b-256 2dd72989972893112808bf943dc22c313728b3ed8018f55dcf4c650a51ff8e61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7e67c3d1a3faedd5be5fa772133fd9f35728bfc772101022f01e0070b50c1b7f
MD5 b4007f5eae907ac4be7dcd7a07800924
BLAKE2b-256 d68622d3650d1cc317ff6a252f1ed4204a09c673ddd56adf6fd5a77c82b170ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.217-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.217-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49c31c1de5b094b5c3b3a89dda9966e7d8dc69974c02b37e81c2862e92df71e7
MD5 96455367425caf4a10949a35437b76d1
BLAKE2b-256 151304a84f6bba4c001086cadb539f86ab572560e550b1ccbda28b66c1612981

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5a2df4d851495667a862f5f02f774c66783b68b37eb02daf0632544ccd11747
MD5 139f1ed5dd70af36a7c2ba58eacad991
BLAKE2b-256 d89d71b9a2025a6041fc0209f61501346fc8c59b1025eff09182ee97dec1991c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 509e3acd563faf101dac3261b00ea78d0199196e0cc5345019833636939c9aa0
MD5 20d7ed3e7ec6a0ecaa3a8ce77efd2740
BLAKE2b-256 79667a6a4a40e3bd86f38a4a25212b30b3d305069900dd1a45bf378bff40e21b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 df12b37f199d2d9fd50854d14121395bc93569222d535d403792aa14934a7e7a
MD5 3f0a59031b5e3b160d482839475229c7
BLAKE2b-256 c9d00e2ab7f4a876d65ec0b2887e51d4673388c5d6f46f9242ea672ec0606013

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.217-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.217-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d4d6e51174dd557e0e9a0e39a732feb32072c524a1c0c7873e570582e19fc34
MD5 065993851a41b4013ea7fff9c8d7371f
BLAKE2b-256 88f61831cf7900c14f3c7349b4012f6ce235c6f4a24b494f482e58b868bd1f8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6973e2b258cf90d13ca94f9449e154d22cd324246c687b9057e2def9bad29a66
MD5 688a7fee2dfda6c96548c75b97e29a3f
BLAKE2b-256 0f152835958b8e5ace3ff5c18f4ebef75538bc0c7f71287d6f42a4531a532a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 49ca9a529d46c41a872a15d0ce8b24331bc7f8cd58d99c750d329e844b515e2a
MD5 779578208ddc153bd0d78ac3339b7416
BLAKE2b-256 c94787f489e4b4e5c8bca43bb25fc5e5bf392e2a7cb9e3aa80efec81baff3129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 eb05add634abf4eec26b6567bf21aaeacb5ac019233049f99d5c28914cc45cad
MD5 7b864805b8a1c56c69bff86f770f6afe
BLAKE2b-256 0cf8a857f3b0b59cb0ad56293d6fe60fa572e5087e6d80154686ace1e918fa4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.217-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.217-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b0ff9a28a9f62157a3083178512b1afd71977766d9b8968e0c55cdebd6384e5
MD5 97ee01121e7919177175d9cacad68e0b
BLAKE2b-256 1207793c0ac75fdf3add5398566e236dfedc95a4faf02f942aa7157d29f10792

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bcc91789895f206090d2973e841ab160dfcabb312b07027a56cffbed2746cddd
MD5 2d7c357dde8eaee0f7fbd08469444863
BLAKE2b-256 f9d3209643b44ea7d34a3ae0b6768c76da8ee1e85e46c70ee9e03d05cd4e7a02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c35e7537b2382acafaafe4f70847492d7359f39e73218aab0539bd857c810577
MD5 3959be0cd8115337a892adde5d70cec7
BLAKE2b-256 cc42cec03834be3a571cff7b3edae68b4afb703e104fbaefdd4e20599470bd56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8e88f829e6f889e141f5c24c397eaa9fe61486c7201005d4a87687d789e70769
MD5 4a4ace96cd638cb5b6b7b963e5e3e42f
BLAKE2b-256 5b77bcbbb4e39b3c23494e053c9d92378c784d6d753c736f7351203f38886fc8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.217-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.217-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40032f0baa49fb8df81e3de454998342699dea90d8dfcd83acce7d376b163185
MD5 01912822e1a2f1ae824d43de734e0095
BLAKE2b-256 859175833964be6b77756dfa17a7cf80a15db68d34dacb731e82fe430aabc35d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85941ccc02a1b1a09b22b0c12db79a5f2781511f39376d90dcab5383524c07ca
MD5 f8382cde97f7f383547de6c804a25942
BLAKE2b-256 541e616bdddb306d51d9d40b354664986231524e6cf06c2021d9619bbe895000

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8033df7b8f4812f5fd7a4b338c32fb1a54b1dbf346475a0640eeaf3316fa34fe
MD5 e17d133fbf109df19b877307e155ab65
BLAKE2b-256 275f649f82bb64f3ce8decf02170ff0fdf0cfecc64a0c11c9dfa703c1cc664e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.217-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.217-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 29e668844bb01fdf4ec200a3f2b00c41d6e9b8053d0a52cb7f6ec62d13a7b0d5
MD5 8ec3f8f13f2e32798f24db439a32b8a7
BLAKE2b-256 de141850feec0b064b7187cb66f3e33feb9d566f76cccd79130b7414ae70822a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.217-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.217-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b8581ee03e3d47fc78b54ac4f8665499169d0ae9599ded94b4d75f1f44f9ed5
MD5 48d8fc1e4ea098351b6af8647abe5caa
BLAKE2b-256 fa4e6ce73fe682bb0060eeaac4cf5cf3b2e24ba2303ee5e5690ef32045312a12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.217-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e79f9621a9b0ce47d82c55013e9e0770fada64edbc6350587c5ce27e1f9b2e9
MD5 f42f3aa9e0b2d40fc11344e66dd92007
BLAKE2b-256 c9ffb04cc14832bb8007c817b5195ae4388c7cad3fd667ffb5baa5b901e6843b

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