Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some basic trig functions #25

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Add some basic trig functions #25

merged 2 commits into from
Mar 5, 2024

Conversation

hovind
Copy link
Contributor

@hovind hovind commented Oct 2, 2020

Just lazily adding some trig functions I needed, more might come later.

@hovind hovind changed the title Arctrig Add some basic trig functions Oct 2, 2020
@maplant
Copy link
Owner

maplant commented Oct 2, 2020

Would you mind holding off on this until you have a concrete use case for it? I think it technically counts as a breaking change, in which case I think it should be merged with a change in version number, something I might do if it's decided to rename the library to al-jabr

However, if you need it for something that you can't push yet I'm happy to merge it anyway

@hovind
Copy link
Contributor Author

hovind commented Oct 2, 2020

Would you mind holding off on this until you have a concrete use case for it? I think it technically counts as a breaking change, in which case I think it should be merged with a change in version number, something I might do if it's decided to rename the library to al-jabr

However, if you need it for something that you can't push yet I'm happy to merge it anyway

Just using it for some experiments, which are blocked by rust-lang/rust#60551 regardless, so no rush at all. :)

@maplant
Copy link
Owner

maplant commented Mar 22, 2021

If you have any use cases for this I would be happy to merge this (and the use cases) now. I'm planning on re-releasing aljabar under the more correct name al-jabr, and reset the version. Thus no worries on breaking changes.

@hovind
Copy link
Contributor Author

hovind commented Apr 6, 2021

If you have any use cases for this I would be happy to merge this (and the use cases) now. I'm planning on re-releasing aljabar under the more correct name al-jabr, and reset the version. Thus no worries on breaking changes.

Sorry for the late response, @maplant, I've been away for a short while. I can add the full set of trig functions and inverses later today, do you want the hyperbolic versions included? Have you given any thought to what trait they belong under? They seem perfect where they are, the only wart I can see is impl<T> Real for Complex<T>, but I guess that's non-issue. Should the Real-trait implement the common https://doc.rust-lang.org/std/primitive.f64.html#methods and https://doc.rust-lang.org/std/primitive.f32.html#methods interface?

Copy link
Owner

@maplant maplant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really have any reason to not add these if they make generic code easier to write

@maplant maplant merged commit afb8bd2 into maplant:main Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants