7 kyu
Calculate the Harmonic Conjugated Point of a Triplet of Aligned Points
188 of 523raulbc777
Loading description...
Fundamentals
Mathematics
Geometry
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
python new test framework + snake_case + assert_approx_equals + backward compatibility. updated in this fork
Approved!
Description should be language-agnostic
KATEX should be used to display equations
JS Node 18. should be enabled
Python new test framework should be used
Function and parameter name should be
snake_case
Unnessary logs should be removed
Initial solution should be
return 0
and all comments removedfixed by fork above
Ruby 3.0 should be enabled
Function and parameter name should be
snake_case
Unnessary logs should be removed
All done in this fork
Some of the languages return string (Haskell, JS, CS), other return double (Java, Ruby etc.). The output type across all languages should be consistent despite having to invalidate several solutions !
good kata for people who making master degree in math
The description says the result should be expressed as a string with
.toFixed(2)
. This is true and makes sense for js, but in other languages 'toFixed' has no meaning and, above all, in Python, Clojure (and maybe in other languages I did not check) result is expected as a number rounded to 4th decimal. These incoherency and bad informations should be corrected.If you are stuck here is some extra reading, for alternative : https://mathworld.wolfram.com/HarmonicConjugate.html
The function name should be in snake_case in Python and Ruby.
harmon_pointTrip
ought to be the ugliest function name I've ever seen.Reraised above with more details
Both image links span whole description width not only the images.
Raised above
It takes me one hour to finish it... not good :/
That took me a while too even though it was really just basic algebra, but it was fun.
Some of the languages return
string
(Haskell, JS, CS,?), other returndouble
(Java, Ruby). That's kind of random. Why not have all returndouble
? Either let the user round to a specific precision, or use relative error checking.This is an issue actually!
Use
Double
instead ofFloat
in Haskell. Unless you have harsh memory requirements, there's usually no reason to use single floating point precision number.