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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.906-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.906-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.906-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3654ba26deae48e6d697f4882e5f879336732ce7488325fb7412add5c746c8d5
MD5 d3423ea9c186322ab6f26649daa68479
BLAKE2b-256 18d1dbc531c7ffab278f3ce44d20724b705d09ed34e8855e6044551a9b7526ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0e6d012ddb3f75bd450efaf990e721aecc020e9a41e014c0b37db36b1938a6ae
MD5 79f1d10d207b5febb37cb05b83fed4b4
BLAKE2b-256 e65f1c9a79a70902c86dd30ec5e57345da2abf53d8e4b1ffd9130caeb72b2f5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.906-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.906-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e39a6f20531e95d02f808c36facecda5c5c779d50fd803d286dd14b2904c6f0f
MD5 cacd1cc7e81f1bb16168bb807ac95f05
BLAKE2b-256 8a213942440bce1f4b5f734f456b62082ee4f14fa41b98d75db56f4b038f901e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3269f0f5f7e37e5c50b1805eb5c9936f089862bbd2cb2be604197803dbc89ada
MD5 14a3a089ab8d80e62ba94af4b036d307
BLAKE2b-256 db3da4be230f3276f6a3a6a6be83b5cfeb33b67f2f2c57f2ec91a33e0f7ec815

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7a0eac49b6176324bbc8e30d079780633b532e218c49cec0532ade2dedfe7f7e
MD5 d8f2132f714769024d192c3b48959b89
BLAKE2b-256 73531aeb68652811804175b256c70dab41a7f194800ac0ebae3e328bca5ea9d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 023a420cec6f564cde5b687878a60a49c02fbe1820525aca9ba73e894b751e48
MD5 b31503ee74e0b189a14631d01b1c435b
BLAKE2b-256 d2875f8fe0ca2923bd8d3f3701736bf2b9c974b0b19efb1a5bc41a3597db2d1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.906-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.906-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc75a4962bad12e4c3b0334c1bb15963dc6ddea13b006a350e44544534e29ffe
MD5 02aa6817fc42ee48f1308b15f2099bc9
BLAKE2b-256 e30ef08c469c78f6b7c86aed3d0daa9f7e264530d7393505e381126a6fe7b131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4edf156df44d2473a2f578414f344b8495de157160b4c7319157d13d803f5b5c
MD5 7f52b9df700a5e1c76c39eaf3bdee027
BLAKE2b-256 a2ae8ddb1f8cf6093b0d99a170c34bbe6b1bbdcae58f3e788d69940b30f42075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e18b08bf7293982c142a01ae5fd2d0058250082e7d970d7546dda5fac4d46d20
MD5 8663f900838b50bedc5dce8246bf419b
BLAKE2b-256 b0fd5a995386f51c92109615dff5aeb981a017ab19d270b8172b3899e04ef30a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 73f47d72723253c61bea4ebeda4bb155c0f0540a74d65c5633c5b7c0386b6877
MD5 10f2304f6ebe45a122644e73377f0236
BLAKE2b-256 c83a5939fbcb990453e4e154a15df26550f5dbd9026f0978e05f20b5b6451eb4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.906-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.906-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35e5d505073c4784fd316fa816c65c9c101503c41aed8dfdbdce6aaf80bd28bd
MD5 71c6aa7fcea49f9aeba7f49d33404715
BLAKE2b-256 df9ac34ddb7d23869987751fbcea1e1b66ed9321605b03bebe7698146e785301

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ad75835c328038e0ee7c07119e008acd6e789b18adfddc30ec83286bd79fce3
MD5 3b645da63612df6bd578dca6d23398ee
BLAKE2b-256 48e5eb869740f7a09e61c98f87d0e3a77656481382983e747927018d4e75c42c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f282ef4fb1e8acbed986f953608b8c925b8b9f6f7284674a2899be7e029d8096
MD5 440ad418f39ee50e20e7f7f46f4abc6a
BLAKE2b-256 f1437c68ad9920c1991304e6cee8339e2a047769bddbc06b6b09d2aa2914f391

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 081a9c61ec3eb9f40dc0ccafbdec2f58b0290cf9aace28e8e25b8c78715465c2
MD5 15ba5ce267493e28b5858e97c2e8b61f
BLAKE2b-256 74fc1066fcd5fd0f53e2555c3a5a6c5495415ff2cb76135533f4d9120d57412a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.906-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.906-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f623ca63666c7d182b25370ddf73240e25ffbb0677b2accefa627bd9ee6c218
MD5 a40935b5eec08176ebbd526ad86161db
BLAKE2b-256 fc0bcd7b8305ebf23982f39343cb4b35358bdcad91745e1a7a7cc5bb42964f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2cb65a22ae1cb1828f42c93d74c782f792d4d7186105e7ae12e074911c3641e
MD5 d3f704d7ce67a78739487189c6a8fdb8
BLAKE2b-256 c54825c50a062ef820d4a2942f41442ef764ee65c48dad025d08da2dda1bcc7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db52080068d0b519638b343ccbe2be152183e4232e306ebfb01a4e456965e5a5
MD5 75e919cc5ac410fbb9391af3e05b52c9
BLAKE2b-256 3a21996c4064a7634e4a1275af3e9ef708072de5c73028ada603f5d43e11d3d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.906-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.906-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b048441b2271911fc9faf79e964800ca054bd80a9ab6c0dc19bf7a26df0eab7a
MD5 fb9cee61831f59c3a208361af3247b53
BLAKE2b-256 acbc9fa659c15e70b9535ee358382ae95eeae8d873ac7becb1bcf526e4464b42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.906-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.906-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4e3aee716434a368d34108cea67e8ee657c8af3eb7f0df7b4ed5e4e9ba75e3a
MD5 85c5285cedd6e6c2cb4e3b29229e7eab
BLAKE2b-256 d7686cbd30e80eb1dd6373380622a91232118f79d603cfe21e9f88e495bf0276

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.906-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ce485ad8a88de91186b4b8cfc5007c2420c1b059db74fc9223b130346973262
MD5 3fe9c5a6211bb5fcdc738ebd29af18dc
BLAKE2b-256 4f181ba18e8357fc784d547e69d2fc34824712942d3b5b00bc3d72ebfb784b36

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