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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.774-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.774-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.774-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 051112ba5b59d4fa75f0f5a4f471ea9e46b21c6e84e13bb98aafbee2c6496a30
MD5 653a41d7a546ff6fb6ec58c3fe68b294
BLAKE2b-256 3c5998e7b63e83ebf82f29555064b7614c79e6db9c40d6131b5f86f0440db1ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e6e55e8b861c5a8e0480264fd328b1a5ae1a234b755d59a018fb664d0408149
MD5 87de6669ccd6bea9bf53b204d09d6531
BLAKE2b-256 a187ecd4daccd07c41c92c97a6b79c6d38ecbdfb0cbf910e215cd32032a67f48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.774-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.774-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b1ec9076a8a854ac6d291949ff9be3922f8e661cb49681c4a89a40592320a3f5
MD5 37742a783196c2c504282a60c03333f7
BLAKE2b-256 23502e7542e728d1c3b4dd03351c48f865fe5cb4a8266bb266e225beae1942ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5235478f75e9f8eb6f149323411366ba8b96e3ca0c8baa6b50a1060e01e93a46
MD5 e70275a00fb9ac8599b52619d44080ed
BLAKE2b-256 d847f602611c473f2d4f2c67a4dec837510226b9e733da809ef215b2e3976655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6904b23c8f8a36407f9d7f5be85c133c5d7951d82267704330114742f2a9ff48
MD5 f906becc95ecc871ca2bc7c0e9581e21
BLAKE2b-256 655abe931f9880f1c47e5752fde91e9b3cafe5804506f4da3f95c342df059894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b449909d37bf2086f578399853d4bbc065f1bea417b0d6aa5bbe5e5d076a82f2
MD5 932601e9db6310db86f41d882f32b622
BLAKE2b-256 085ca7d2f668fead81ba3303f349be7c7b6fda78c3b7ec7a50ccbebccbb1d008

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.774-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.774-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d22eda7dc6c99f158eeedfac2199df9a1c03e63c5f4f58cbe1ac16fca3ab5b19
MD5 7ceb2126f11e0db4550d60573df8d33a
BLAKE2b-256 1d672791243cf812e10b2c2cad0a4fd275010c9e2ff3bc4ec6696f0deaec4117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2184951f95bd747b7dd3221911c9744f517455bc5e3a508e3c98ef9ab3d068c6
MD5 81401c4bfac7576d97ba74fc0abb8488
BLAKE2b-256 cfd2a12a6e93c66edcb4359ce56bf05e48f3578353183831f1d12959044dc2d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 adfd2d337e590ca201a122ee9ae9a3609a88943edcc5dc757cbbc375bfb26631
MD5 d951cb39d1b1c456fde3a17b31434eb3
BLAKE2b-256 90d9904b5e03819b77ea51fbd6cfd7b5b3b6ae4f4866490b9ddec02b7c763af7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a47ff53c58912b65aa096451fc770c86df71e0f899a9c1ca83623701c8880b77
MD5 db39b8b042304f666ec8de8a3bcbfaf7
BLAKE2b-256 31ea6644c8732130e0cbc1641b5dad7655e63660c7f7d2f075b0447760c74249

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.774-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.774-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 997198fc967cc18263905983fe47733ecb69b9259a948292a5a70fa12de4328d
MD5 f5d43ac3f76412a2bb1f1d80e5be342b
BLAKE2b-256 f387f60fe70f3daf2572c0474ff1f8c8c950fb4fd2e8c2af51311fce8d8b1e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5046b135879eb6ab425e791f730de46f8b4bd58bc7009b8ebd68a99096d9e715
MD5 78892972af2db7fbcc3f560bf8a55f08
BLAKE2b-256 8d96bff1b3e230b4aea51065f112c46a4d01dd5eed3653e3451cf5efd5c7df75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cfe5ca2412be4d22c903a1a191fe783823124105f6e281b963f9c08b2f51f625
MD5 10df6b843ca14c34dc27be4c6e76bd87
BLAKE2b-256 cad86e725e8f2e88884a8736507d245b8aeb95d5cea81e5d2e103681f1e331c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 35614ab0ae40c0667a171de36a44e9d4e15eeef242a0952b2f3694836ea709e2
MD5 d9e8140b7282a22e19626a71c45a1b44
BLAKE2b-256 a7f8303c211e7e6d121fb735a8487c36af3890cc44bafc7b715b09698831867f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.774-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.774-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7fd012196a31a2796b4deec5461c6145c165ee90a76cbdd1aee0138372ad1361
MD5 37f80467fa4caae78431d8f4b98b9182
BLAKE2b-256 a1f904ed3469c18bbeb8f1ea3c301307af30c032decbef42a5cea56764dde3c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 632ba52791cc90d75596210900879b198d412186a309ecfbe9605bc7e9da73ad
MD5 28d06ca615c24c8cef29d675910d78c0
BLAKE2b-256 5940d07a819951e0bd9c174be8b759871f732e99b0cd2bb97c12d9c1a46ea250

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9846679f33345bc205301d88e5af91555413b20b01c1878e50fa3b76e5c32698
MD5 06372881cfc59f4ec92def3675770b5e
BLAKE2b-256 48f309e4b74a19776e64db9c91d443e6d7ebce8a4667fcf5e88029d88cbedb4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.774-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.774-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b698bfc17740358c2fceca613ac984632b900e6ff93cdcdc8c2efd85de1cb152
MD5 7bc1a7771eaf04792eb1c9183656cf23
BLAKE2b-256 953fc797e1482efb334c15d9b928e4da1ca9fe6ab9ad3212f2e131d6fa4ee484

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.774-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.774-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f6c315d72c8e9a295807dd0b47ecc269b174aadbbc2bb9a8e9605d5cf007503
MD5 126a035cc1b379d9da691de1b8091113
BLAKE2b-256 f2c6c059929e4d954996604df8b3d1b326ea3c3a4d9c987b02014c5292a4ab6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.774-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39d028c801950323329a63e955fbc41b7d209089ab5d5e3e9d0a48458cc68a62
MD5 97c251c99fdf816e6eb761ed2235e161
BLAKE2b-256 f4cbd19776c4750ae1a22e1df5bef00274afa9fe02c62103a2913e7ba14f884e

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