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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.542-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.542-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.542-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c8807fd6f88f5844a527bc40876c7bd6be362c13fcf0ab28b6047ab289f1a6c6
MD5 56b919d25d7e3ae22aa0980aad1b0549
BLAKE2b-256 ee8b5d18222e157407f7f2fbe49e93e10437c9c4e9f4a819ee09b88b1e3d929b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 52ac260c19ca9c53f17e3396d2f78373f27d184617b3455061c73697385bc620
MD5 cb9a866338dba72eb223760ce5650759
BLAKE2b-256 da776fe11666e04ed4d0dcc0a6c792fe4e85f4204e4e00afb6e6de050d59b75b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.542-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.542-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5573c1e948473a235e0610c3da0699384a6d95766170d67878d6bc8e42451064
MD5 42da14f798026fb69c8d7e814c3bfb99
BLAKE2b-256 c188f5ce4f19b929cc02a61409515748b07cbf9ef90017fdba36e3953f599ab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b41513626f8d5900b67b3a61c7135ac9178f69cdd97b2021b8907380e025dc2
MD5 d64c56bb8f7473f33398ef3f2d0eece6
BLAKE2b-256 4c107421926b359db23f41ee47d70844ca9b4905af7e1e9595d0e8d86d6aaed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 48f14c770cfed851ee6859b5b099c4130a7806ce339b9ff93c35dc2bba79b43a
MD5 ca5a50d557310fc24fb3ec24a7cc1d53
BLAKE2b-256 0d491781f3aa5f9d2ba10e3a0406ddca4a8a37594a9721831948fe549979c914

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 69121dbb30003c76db061a07daf98abbb289a70126ffbe0ca57d1ecc9b06cf65
MD5 57cc70aaaa0486322c580d6693c779be
BLAKE2b-256 1449ca5c1f110cfbb4d4e48a24f2d24491ba10b8d824d74099ab0366b02c32e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.542-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.542-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d8d2fbbea7759509f738b0cda5e53e0bcf4e6114e0e332cf349f531c710b8b8
MD5 1518933669fb48349f27fe00e27fadb5
BLAKE2b-256 821a427ab82529b3917de1284d173f6141a2975f883a4d88b754818c501490b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79db0422216ac9c7b896728e1bbe87ebb90325e74703c2d828e75ec0def8cce4
MD5 bd67270b993d05778ec71cd8aa5ccdb4
BLAKE2b-256 c8cc4b3c5aa5c4d4996611942b4f868107b4e4d94a625dbbf82ce298cf6d6bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab3816ff035b4439bb1b50ec85cede2fac5d1cf21fff452e2e57e78c08197646
MD5 669c2285725d5d092897ab1c2dbda417
BLAKE2b-256 de1284fe7be9df9efc1405746c009420a5504eed8c485817a7eeb8853f8ac48c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ee4b85ac5aeab333ea1a855306a8e157d37323dae4b24df6d05e7cd1d0e72b75
MD5 8981e515625068780426aa0446cf6002
BLAKE2b-256 a44fef048f5b25bc2bb034c23aabe27cf421b9c1d79d420bac47110b83951567

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.542-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.542-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23415ef2df9e6140ce6fb710903484ccd0f663eae0e6029dd39292505d29bf26
MD5 ea4a051f81b68f5190fb63df87c1388b
BLAKE2b-256 d1fe0a9cb49580d081bd7fd642bbd60c1c5513d48b424e2cddc794235ae37757

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52a97056020d9c53ff49f3d16b2b60dcfa066300ce0a5e128312b087f2546796
MD5 55f8d565dd777ca34cd635ef2fbd8039
BLAKE2b-256 839de69a9c6791f7a584008ad68fee7535f587b64e14e4f2ddb71b9b1eb2e1d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ffbc9e4e89513a775f4b93923daed2191c6e8b9cf3b3d2d3642fb8ea864d519b
MD5 d6d616f6a841eccc552852bee977f790
BLAKE2b-256 5d649ebd7230c869fcede69eb068a9e936ed1fd56ebea3344d4e84d144db2404

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1f46479bc6ad3a6a3170812c17998261f8b5b29e4d131f6bc3be72a560c68824
MD5 bd048fa4e19d8ccf193244508b3fa2d7
BLAKE2b-256 363bc92364e6c8b817961c101a1a4271d179eb4bf5421ad0ee31cc79800225de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.542-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.542-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9551cf1132cb5324667568d30bace6df2713e0e6748de0e867c4fff4ec72eacd
MD5 4261d3195cc1b41c817602552ae8e102
BLAKE2b-256 c83f6852b14d7ffba587bd2bccd72c02ef01411688d48f9003f5e29dfe5b7fea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8721b67a31303aa252309cd5ec9ca0520a404b08f703300ad16b022ed9a97538
MD5 cd8e68359d4c488e9602444d22ed5432
BLAKE2b-256 8e660c8bea998c29e1430756ad88f3e2d40378b7b0f0d27a09d07bef72279c46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 204a5e2ac8ef57b2376b262e040635e7f21efe49664761fe2053af37ea35ab87
MD5 d1477d1e459f54a0d64618ecdb6caa4f
BLAKE2b-256 6955a6162c4e29306eea5ea0b28e229cd8fab88fd11f24e6d9e52cd43ba86ac6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.542-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.542-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cee35db67304f8a9dc810f60b4593cffafc45b41ba870742fc2d6f2e49fc6864
MD5 4c5edf204de4bfcf3e418bb0151b7925
BLAKE2b-256 7339b84d8fee5bb1e266f2027b5841afd821f1106cfc9a08c313683d95798e1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.542-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.542-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f91b18a8ddc6ba126e1cb4b3e1b812ca9f4922f9fce366f1cb4d715569af2ccb
MD5 163dd2765c2ea2914a8a33d4bf8a7182
BLAKE2b-256 60f4c918352b74471c4c255d615eab2d2f312f766eddbb2fe20a9dcaf106c94e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.542-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f269fc7b43e3e29bf603ffd0dbff7f1b2efa27bcc05d4dfb596144c030dc240c
MD5 86c94d3b164b3b5964402b81e6543d42
BLAKE2b-256 be839ef6a5e62d54b444d88c0adaf0030180915e2159764c1b76389166e3e15c

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