-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
[Swift 6]: Update Exercises batch 22 #816
base: main
Are you sure you want to change the base?
Conversation
…dle points exercise
Hello 👋 Thanks for your PR. This repo does not currently have dedicated maintainers. Our cross-track maintainers team will attempt to review and merge your PR, but it will likely take longer for your PR to be reviewed. If you enjoy contributing to Exercism and have a track-record of doing so successfully, you might like to become an Exercism maintainer for this track. Please feel free to ask any questions, or chat to us about anything to do with this PR or the reviewing process on the Exercism forum. (cc @exercism/cross-track-maintainers) |
You will have to implement your own equality operator for the `ComplexNumber` object. | ||
This will pose the challenge of comparing two floating point numbers. | ||
It might be useful to use the method `isApproximatelyEqual(to:absoluteTolerance:)` which can be found in the [Numerics][swift-numberics] library. | ||
With a given tolerance of `0.00001` should be enough to pass the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a given tolerance of `0.00001` should be enough to pass the tests. | |
A given tolerance of `0.00001` should be enough to pass the tests. |
This will pose the challenge of comparing two floating point numbers. | ||
It might be useful to use the method `isApproximatelyEqual(to:absoluteTolerance:)` which can be found in the [Numerics][swift-numberics] library. | ||
With a given tolerance of `0.00001` should be enough to pass the tests. | ||
The library is already imported in the project so it is just to import it in your file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is confusing. Does it mean the library is imported but the student needs to reference it in their code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The library is included in the project config file. But you also have to import it the file you are working in.
With a given tolerance of `0.00001` should be enough to pass the tests. | ||
The library is already imported in the project so it is just to import it in your file. | ||
|
||
You are aLso free to implement your own method to compare the two complex numbers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are aLso free to implement your own method to compare the two complex numbers. | |
You are also free to implement your own method to compare the two complex numbers. |
Includes:
All of the exercises have received a makeover, the but the most substantial one is the one for complex numbers and saddle points.