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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.471-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.471-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.471-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c29b5b07567c0f5a0eea5ae8d20b021822cfa3150137eb031908b3ecc2137517
MD5 f5969746ca566c66047d659d187d1ab6
BLAKE2b-256 5691d522148cc1e42fa78e4f24ab8f02f5e1c4d914076308a1cba044976b50d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9621062c3ff431d0559f487e09b41c100ada76c80a2cd8641da512781400521c
MD5 519a5c3f8e8b3b337a830c8b018e9f64
BLAKE2b-256 364f0fe8fada0255f492ac7bcc1f0dc635f1e36495c5c4b477e13be8f508cd7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.471-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.471-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7d662e549f48214cdc6e113c5c87c04279aa5f449580eff3f2199285a9d8ded
MD5 35a5075dfbbb58243e27556e12a992d9
BLAKE2b-256 309d942eceda191f18f4950717f00b41746712677252d2a15c89c7ecafdcfb4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4602998196a626c2fdfc7e9e02436f769b7f4482981b2c6dc20bd1aa69c71b17
MD5 3a05e21cd09483b8a7b7e0dc7c14fbe6
BLAKE2b-256 4efcc24ec11259202ad0aa70a142627b21e09926b03f4cb6f04f742112654050

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b22226d1f2ed72f0157aca32ac55c5b29cf84f70fc4d1abbb161f4f4dba301a9
MD5 73e2abb8cef4efef55ce2b1d4c628eb7
BLAKE2b-256 e2d1bb93dd27405bd6c1fcb710af261025ebbed059c02b40cca22047faeb556c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c3419c1fec4607a1599ca706b7464e99113bdc2febfe94ba601a9582e1495fc7
MD5 1e86c24969103f564344eeca8ce3d59a
BLAKE2b-256 796f927cb8eb5757f0e059712e3a0bb5994168e91732ad229562a62e5d2eadc2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.471-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.471-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d97f5633ed8fe654541266dbe4d8f48887121c9030793de0ae1d51dbbb0442f
MD5 b94b78ffe1d581cf49234393629cc141
BLAKE2b-256 f5535d1404968bd89d69903ff8d4bca3e0c2eeddb3b9d08e9e8ab021034d3c8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6545c9e976c8e37a491718704c2d92b79f70253d01ee53035a2040cb26e16c8c
MD5 f7daff97e5f9a6f0436edd7bf894aef0
BLAKE2b-256 39dccb4b8ad472b68c7979740fdd0d33f1b1062db76779feec439672919e4510

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 324b18890f9d0094e9178fa2aff833505daa3f877459ab4579216497ed3a8d7c
MD5 d66fbc7f1cae95ac4c68277226dd9cd5
BLAKE2b-256 bebb10c19401bba0ff12bc6ead11d64ff4ef0b5050080676abe13f2feacba8d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a9a0fe1879246c8039202810f0932fc670b8bd4ce113ed705bfc5f5c9c6fa2d1
MD5 63e03f7a8022d4a006473efe90e6045b
BLAKE2b-256 e488bfb990f05bb3feb9918fd130942afd7dc6de912aecd9cf9b16f09f582590

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.471-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.471-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 992177599bbbb371e0dc80529c5ffdc588a1244a2e4363a805227d32b92db502
MD5 7108935a27960ae8bc283f48e13ee5bf
BLAKE2b-256 0daabac22dce7efe26b9b3d7c8ed760e250c17ee3de2b8d29b4fbbcef21243f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5149fb55bc39fcab19ac5c2d3345c9a55bcebe78d094cb8b9fd30e359ad9cd31
MD5 83f1c928fbe0f440bc6d538692d001c4
BLAKE2b-256 523537326f963ea73f41c11f0288ff4f8c875899eee8707333206cd1e6a49739

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f0c516b48bb5415b36f999ec93ef8097e0784d28b9b39a1e681444a230856d1d
MD5 93552201b47da064350c80f5fbf80b75
BLAKE2b-256 a95a23cd5c511cbf89346b0622e82b31b77c1bda3c1e82f5e693a36cacdf2fa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 22daa42c1ee7d412961c34cb36cebf707357f046c93500d1705ec3fd5ff286bf
MD5 88c1ce8af889b2e4d99ff836c4c4fa8e
BLAKE2b-256 2cd90f6920eaa309689c694a3b143770f354f6f4ba12e08f532623b0f3a6378d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.471-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.471-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0622053b544153e6480b0e55f367d79563afdf79cb64132d14e1e59086ec6295
MD5 deb3f18f2cad16f1126f0b5b70d38143
BLAKE2b-256 999d35bdd447c109fdf737daf996749db2bbe5e0080b00cada6e33bf346e136c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac7c262cdee0d470a8e396dc7beac4b447d3ab84ee51a569662cc75144f1d180
MD5 f6f89e0aa06510b4cc64c31db9cb1f92
BLAKE2b-256 725f47e5573bfaf14cb0d130898073894c3ca86b9bba9846388e57a6dcb4540c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 efc1c82e9e9a00b8a6ac5dc000dba88860790c8863d0abc403229792cf50f9b7
MD5 2824c795f66aaa965ffd482a5b086e4e
BLAKE2b-256 589ad6f0b4cfe6426239c9af930a0ea29374aa3c30ced661812c6a52c463e66e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.471-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.471-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 10668b5685bd4304718d736fc4cfd57f8390c12e976a9727fc481aa5640f20c9
MD5 c9f35c74d9ce666da4b83e2a10e70b63
BLAKE2b-256 44519aa27a8c0cd8d76dd2546dc483d6a32414991c3c5c1cde5a5bbc85ad7974

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.471-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.471-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 815d33ae1710db842c88a373cf8a1594762175314bdb8cc016fe4be7013147c7
MD5 3b8aaf84e079d5ffc5cba403b6978d26
BLAKE2b-256 835f6d70f4305cb8d727a434f669d885e871623a56660e959ff348e35e6bdf3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.471-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a989af71aa792727bfec86ba8cf4fd60f10015cf407ce458ab7a900d395b8d8
MD5 a85fe92987e6fd9278da581106fe628d
BLAKE2b-256 989fb79968eabea1737f37175e11d4d35035c456b00f629adc600235b9c498b7

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