hyperspherical


Namehyperspherical JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/kiasar/hyperspherical
SummaryA package for converting between Cartesian and hyper-spherical (n-sphere) coordinates
upload_time2024-06-28 08:41:18
maintainerNone
docs_urlNone
authorPeyman M. Kiasari
requires_python>=3.6
licenseNone
keywords coordinates cartesian spherical conversion
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hyperspherical

Hyperspherical is a Python package for converting between Cartesian and hyper-spherical (n-sphere) coordinates in any number of dimensions.
It also works for 2D cartesian and polar coordinates.

## Installation

You can install Hyperspherical using pip:

```
pip install hyperspherical
```

## Usage

Here's a basic example of how to use Hyperspherical:

```python
import numpy as np
from hyperspherical import cartesian2spherical, spherical2cartesian

# Convert Cartesian to spherical
cartesian_points = np.array([[1, 1, 1], [0, 1, 0], [1, 0, 0]])
spherical_points = cartesian2spherical(cartesian_points)
print(spherical_points)

# Convert spherical to Cartesian
cartesian_points_back = spherical2cartesian(spherical_points)
print(cartesian_points_back)
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kiasar/hyperspherical",
    "name": "hyperspherical",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "coordinates, cartesian, spherical, conversion",
    "author": "Peyman M. Kiasari",
    "author_email": "\"Peyman M. Kiasari\" <pmkiasari@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/34/43/50cdb47560ea07cbff10e866fc849c0185330a1c6f91fc68c3d833a3629d/hyperspherical-0.1.0.tar.gz",
    "platform": null,
    "description": "# Hyperspherical\n\nHyperspherical is a Python package for converting between Cartesian and hyper-spherical (n-sphere) coordinates in any number of dimensions.\nIt also works for 2D cartesian and polar coordinates.\n\n## Installation\n\nYou can install Hyperspherical using pip:\n\n```\npip install hyperspherical\n```\n\n## Usage\n\nHere's a basic example of how to use Hyperspherical:\n\n```python\nimport numpy as np\nfrom hyperspherical import cartesian2spherical, spherical2cartesian\n\n# Convert Cartesian to spherical\ncartesian_points = np.array([[1, 1, 1], [0, 1, 0], [1, 0, 0]])\nspherical_points = cartesian2spherical(cartesian_points)\nprint(spherical_points)\n\n# Convert spherical to Cartesian\ncartesian_points_back = spherical2cartesian(spherical_points)\nprint(cartesian_points_back)\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for converting between Cartesian and hyper-spherical (n-sphere) coordinates",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/kiasar/hyperspherical"
    },
    "split_keywords": [
        "coordinates",
        " cartesian",
        " spherical",
        " conversion"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97f02586fb0737ebd213c76649bb10aab7dc061026451c19e5dabdc93b83b228",
                "md5": "8c3ec7e8c49891ec02bab0bb99351865",
                "sha256": "49a7cd032a5ab8231598c78f59c3a4d884e8e1b7817ae92490b7aae2d199e6f5"
            },
            "downloads": -1,
            "filename": "hyperspherical-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c3ec7e8c49891ec02bab0bb99351865",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4770,
            "upload_time": "2024-06-28T08:41:16",
            "upload_time_iso_8601": "2024-06-28T08:41:16.308424Z",
            "url": "https://files.pythonhosted.org/packages/97/f0/2586fb0737ebd213c76649bb10aab7dc061026451c19e5dabdc93b83b228/hyperspherical-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "344350cdb47560ea07cbff10e866fc849c0185330a1c6f91fc68c3d833a3629d",
                "md5": "1300f8427f029557914f209128126083",
                "sha256": "25c877e110094e1944a6df997444e3186f8a25c70654c5f1489b462170fec798"
            },
            "downloads": -1,
            "filename": "hyperspherical-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1300f8427f029557914f209128126083",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4620,
            "upload_time": "2024-06-28T08:41:18",
            "upload_time_iso_8601": "2024-06-28T08:41:18.204390Z",
            "url": "https://files.pythonhosted.org/packages/34/43/50cdb47560ea07cbff10e866fc849c0185330a1c6f91fc68c3d833a3629d/hyperspherical-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-28 08:41:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kiasar",
    "github_project": "hyperspherical",
    "github_not_found": true,
    "lcname": "hyperspherical"
}
        
Elapsed time: 0.58156s