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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.74-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.74-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.74-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.74-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.74-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.74-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.74-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.74-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f76bc9e796bfd3c1b162a4f4fa49d0dd0a42922b3a88aeed45e460e2e8783d95
MD5 2a3f9cc103b353b1824e93db124fc77a
BLAKE2b-256 042f5f2169c3748e96c6a594b145b7e600a35fc90b085f025d273ea3249e7d4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d6cbe4d0b9ea52e598f081a2ac6f1e81787024a639841a91ad875c8263fc8b54
MD5 870885c272eaf555c130e4df003608ec
BLAKE2b-256 7d1617974baebe3ee53e64152c40052c70c2ceb298defa99779fc5394bbb3620

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.74-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.74-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa6d8bdf565eb107bd97a0b21a2426c7df0b327a84ed2ab96fc60cc329aa55de
MD5 7bd6e715849e5469fbe83a5bd0ff66ae
BLAKE2b-256 978158aff5700432a7385682c4caccc9591bfb2087b81892fa7eef0335bfb264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.74-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51fd3a02aa2e8b9ac0e438a6911440b81dac71c4c81dbb288ac5cb642abd5d18
MD5 63e2c9ca30ad60e4442673a6d088b37a
BLAKE2b-256 e201e251f778e31dc78820cf11ffa110268b0aabb472cd7eed0e5706d74b9e57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.11, 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.74-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a7ca5c80eb65475c720a5bf189084e3800dfcb25f0b461d7c35bbbb3901b3efe
MD5 4867eda6a24be1b3cee3997ba500c6a6
BLAKE2b-256 553ee6b8fdfcbf5ef35e3f2418e1164e37a428e25bbee462b85fd4b35a600666

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a2e6c82b6d70854aa71053bcb5a680fbb6728bcfb5d924aa9d282043f7d47bda
MD5 e3b10e481caaa139f3427487e7f5f664
BLAKE2b-256 796a92b9c0c660ecb4b1b968ea5da29e83441c92d2006370f586e3d193971941

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.74-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.74-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e1bf22bc7c6ec56cd763be1b562a62d00644f6b75a4505bb371b6dfd284904c
MD5 5f5ffd9fa49fbf098e9937edcf8ebbac
BLAKE2b-256 d947d13bc0069d52291530db928ab76f7d00a9e5fec178ae9b45fecc952e366a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.74-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ec453e082eb093b38c8a5d1d890b752ba6383e07418b9a69dfbaf2ab15a2622
MD5 7c053c10d52571ee571a1633da351492
BLAKE2b-256 6b28b1fdae77f7c7a8adfa00c53ffef5bbe71ed5e858b3ee6b79ead2fccc8072

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.74-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3d8b68329a0192bc07ee81e5c2cb2a077af213c1599470d5100dc6c49e1df027
MD5 1fdb336f54a0861e911006dc87b4890a
BLAKE2b-256 caeb4b45de0203b521eaf9e076840e6b313296af9bcdcf8193df5c9640e80404

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fa8dee61ce700ea5e272b38f43d3ee23518fb30e849523e57d5b377218876c55
MD5 a70ea699b718d47c903250df051412bf
BLAKE2b-256 6f1b8dcb8a7005c588b0f5944ab5602f101f4071eadd1477da53f22285e0496e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.74-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.74-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd42f0b5662d9738c1f51cb6e7b8e4dfecd160936fbfa98fe58afddea3a9bf5e
MD5 0e2e89002a3df0967fdbfb3808b55db3
BLAKE2b-256 a5c3943f9960ed5da0dc5daf30b919270a8cb5388bbe6030b4c472edabfd6a27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.74-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feeb26b073267d1ea91146ff24815dc70d3217ddd0e12f4e6b384a02d7f64424
MD5 2a739c44d2259388af66a6cd0c4fe783
BLAKE2b-256 6c5cc4a199d7dff3a014ea9071714f3bfbb7114be37637fa1750f1df13a21a65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 44dcceaac68fb316b0d189c954a2b6322be9138ee266c477aea0de93a93240be
MD5 76556d4a970b99980fdf41c72a5925e3
BLAKE2b-256 6126845d26566514cba319c9a58d8c6f1899926058d91c90c5aacab9ae61bcdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cd019e47edb2797b0cbdbbf9cada2ce84d55fc3ce5de35c7c9ed62f913e0e999
MD5 0ca77aeb2c47e31770a5dcfb3041aa95
BLAKE2b-256 0f39bfc2dc657df96b7c2ca3b287379b3280dc587128ac76dedee7250d3a53c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.74-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.74-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baed48e56b2c40d1e9d70099d989f084832c55a173459bead9db4f32f5e77f4d
MD5 df811c2772003b8f3304353c29814a43
BLAKE2b-256 8c197d34ff5e0d1e8c8150ae52d25b0bd36e8afe69f44f2e1c2a0553a8dfffcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.74-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbf3fad36d4b2373ac863d2588f1e321a6ba2ace01ad09c5d954a44e044e8d32
MD5 434a38d3e9bb19a5d1fcf7ff7cb791d5
BLAKE2b-256 b0d46aaaf3199cfec505c31f127b797e1b6416f57064dd59a6a9eb1fbc022d94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 071a59673d6695816d8da359ed3201bd7f66f9c9fb4a14b72b07c790266eb2bc
MD5 82076bc210d22f70ab5a9c40f64103ca
BLAKE2b-256 ed841dfb34721f490f4073d8772d2aecf2ddb414cb1057920ba81793348140ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.74-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.74-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eee63a8df5e357286f3c301dc2b019a185166c5b75dda1ff64a7ae03afa60db4
MD5 b8e1ea6ef6c37e864a3fea7b82e873fb
BLAKE2b-256 af224b7a5977333751113e589d01d1dfbfe314d8b0dae9f836791fb2db0cfcd5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.74-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.74-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76e6ed3ce29ec6ca0706d6d46fb4e7e26605f58aa23f34a72773d0b68ec65c1f
MD5 5a93c513961b297d090dcb00ab8c1360
BLAKE2b-256 766d817684be545e28090bd64e7e51b90d1fd62093d482aae6a176de12752454

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.74-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b72d9e519a6ffb97691a28fd8b6dfeae5abedc8dd9ca6f448ccf7c0c8f1384e8
MD5 3e24ea44c1c71d590731ccab35568788
BLAKE2b-256 4400dc48958609ba72e3de07f153d9ba8792c286b60dfbef94716e68477bf39d

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