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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.904-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.904-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.904-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9f32fd9053cef33493ebdc8674918c5a5040efe5c5b43c68105622a3b93a77d5
MD5 5f4d91945aae4baa3ec0bf15e9a6c59b
BLAKE2b-256 1840b010563f3b75d4986709af1de1c5be5eb4d8395ec2c88a3c599054f2fcd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d70c631bd18d35e9ad4ea73c4ed9ea9a404b6c446f394958d42c80a62f5bfb03
MD5 5b26d56579a21b756e52bae4d7a5b276
BLAKE2b-256 d928cb8c44344c4ec70c90eb8277b7c557c1667f31813819909d257ce558462b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.904-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.904-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e98f89d5300c37e285924607febe2e4eb5c7b066b52563aaa5250c1c45800aa3
MD5 e168783c33b160a5d484bfdb84bdd5de
BLAKE2b-256 f48f935c36b2f44f2dcd4b05ef130119c0913a92380a396556ea39e0c7b4f11d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51ffd7fadb1dd9f77a9822f7ccb6555081b7f0efd1b430d16ab57eea64c9a417
MD5 afc9164ed90cd279e605b66505d47b38
BLAKE2b-256 f29c20ae4a300ee3e8b33a40845b14e08867719e384517cbd64e67316b481202

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eff2b2a800de26939e03f6632c032a157136a079238663a8da4965c465b5690d
MD5 cc65bed1effaef34b19e9c7ae75cf042
BLAKE2b-256 9368efbdaf4ed0300fbc2046a537c1d90678d40df5ec830996ed2603759ec3b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b9bbc7378828c4a22417a97ddb4bd0c931a004191769ddb82d31390fbc57f148
MD5 9fb7b921586696632b287cab2ef34b76
BLAKE2b-256 2b3c00cb8602e3d44a038fea80ecb2cdecbc14cf3c3fb38df63dc22eaa5a8f3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.904-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.904-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ddb0e93930549ee5f30191ada1bc7c0ca9484afb6a6fc5708742aafdcad2294
MD5 41bf234c33d6aa1ac040993e388240a2
BLAKE2b-256 f86f67361ff189a5ec08e9e8c8551818f18f66667ca50a09b6a308a4fe0c2cf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7748e53c478ebcbac70a4591778a0b823f98dda67a4612de06cece2b7e969eb
MD5 d1491969208404f5fdd48821644256b8
BLAKE2b-256 72a35a394fee30e9893298ace1e77ea695bb96cefcc569476224e519904a5aae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f67f14c3e338d3d107c6d17d599043718951db44200e78944c3f0e4589123613
MD5 d424eb6561d1f076e84905e242a208f8
BLAKE2b-256 2cf0bf4262987797cea78d94676daee3dcba989e17dfc52b5a763bae3803169f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f9101f92234b16906f5224b5b33b4d209d434f3355b9602fcd36f4183dd79333
MD5 b34b485cfce478e06466c1cc23397ba9
BLAKE2b-256 192ba67e403829e02a316a5a3d7047783346834a4ac04e0c347b173225208625

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.904-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.904-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97ded0afcf2b5baa8af598d06a0565b850a2b499795ab949b009b2e77479c0dd
MD5 564113a905c04202b152270749422a82
BLAKE2b-256 36a353736e6d2e4abfc9aaee14de7a1f04abe05d1f671d27266365507bd33d4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b29992fbb034a30f19af9c187d0060b9052b59b3a507a0f10abb81f9d05a872
MD5 053b088aa2af87ddaf894df696abddef
BLAKE2b-256 1c22c6724b20d7a0d7cbcc5c469dede1ad267ab9ad5c54b2fc3919a4c4efa385

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 73e82c4d7531a5d65850526fb1b58cb100d803edab3e3b794fec2f1bbe3824cf
MD5 e1fdb0f2b35b1937dff2af545fd3a283
BLAKE2b-256 b2086b43a9232f053987c1afe8afbe9766210b0111c0b8f0314af8c9037f41cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c30491c482b21f5cf4c330c0205bc6fd5500955ec074671b67662eeee0a640e3
MD5 efa5cb64a8f8e5bf46cd49fbcdc312ad
BLAKE2b-256 b01cbe493e350d3f83acbc15131931db01b09df7f11468ecde59c7eefa8c6952

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.904-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.904-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95fc1a52eb0709aaa2f49e61ee9450215b7996cbee645ae5a0856c9c171723c1
MD5 b7e3c377bc2091943eff3bb421126f32
BLAKE2b-256 0fca877a816364ad83d2434849b4a4267747aa94813c3f45cde7f08400d0f9a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4eae75699c2a0eefca2e5d81fc159d62c59ec23d03ad1d48fa9e3694c2b515a5
MD5 40982407b5a4df14ace38c73f06d18bd
BLAKE2b-256 f8089c9b942582275621d2ba574a44cc86200c132affd6a3a9995dbbf0c622d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 003d2d2be0f1c1c437e60de5353896d67efb5b76e63f7a9ed4b07c974acdd938
MD5 2177ec762957c985f7affd1c59cea715
BLAKE2b-256 9857a7b6c46498c7449b103d77ee2b43f6977df5013c478ddb92133187880b9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.904-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.904-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4adcd4b527fe4db236f6929748a1373994a81360df56b86d65a6c9e3f8e1eddb
MD5 46e6928c5201334940da09ec48703257
BLAKE2b-256 fcefcc15d3d2bb9eb9b9219eef929665333799b0a8aa9a8ab77d19d10f2fa674

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.904-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.904-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f233c64df2b85e3ac6833d3eb078d6d7ce9d18399fd774433033c65862c3b676
MD5 cb2c94afbe141eab6437023bff2539c4
BLAKE2b-256 ba749358eba7c95faeddc66b2acccf51278dfea788945c3f6eb379d133927c2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.904-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e89b7843b0036e0559b0cbd8434ab8f07aa0f947ad4575a5406045060c78f77
MD5 ad5f6a5147bd8a0af91597f05a1db0f4
BLAKE2b-256 f0af5fa5d4baca8176a80ab825e73b1b80ea8285f06ae66d4ad8caf535ffc681

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