8 kyu
Take the Derivative
11,634 of 25,153K-Calderon-ASC
Loading description...
Fundamentals
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.
Lua translation!
Test in the Go version reports a correct result as wrong.
?? no
Haha! I see it. Thanks!
This comment has been hidden.
The additional "x" is supposed to be there, you're the one that's not including it.
I guess I really should get some sleep...
cant believe i just did calculus outside of calculus
Insane wording, easy task. Great exercise.
very direct
Scala translation
Approved
CoffeeScript translation
Approved
finished it somehow
Just solved problem, but I suggest the problem should say return instead of print. Misleading for newcomers to the site.
Done.
good for beginners
Does this question not have a check for ("^1" should not be truncated when exponent = 2.)? The top solutions don't seem to be factoring in an exponent of 2.
Go translation
approved
D translation
approved
This comment has been hidden.
This comment has been hidden.
f'{c*e}x^{e-1}'
The instruction says that:"^1" should not be truncated when exponent = 2. But some of the random cases does not follow this rule.(Python 3.8)
Are you sure?
Ruby 3.0 should be enabled, read this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
Enabled in this fork
Perl Translation
nice kata
What is it we are doing here? I mean, I easily got the solution through context, but is this a formula for something in math or just a formating exercise? More curious than anything.
Elixir translation
This comment has been hidden.
Great Kata. Defo kyu8: follow instructions and easy peasy.
I really converted all to string XD
"^1" should not be truncated when exponent = 2
This isn't tested for ???
Outside of the first two tests, the rest are random.
oops, I misread the instructions, I thought it said to leave off the ^1. easier this way .
Please review available C Translation (author inactive).
This comment has been hidden.
return the value, not print
return
, don'tprint
.Mathematically speaking both of them can actually be zero
It's not clear: JS uses floats for the random tests, and Python uses ints all the way through.
Replaced floats with ints in JavaScript and C#.
Haskell translation kumited, please review and approve.
Ruby translation kumited -- please check and approve (note: author is inactive)
It should be mentioned that
"^1"
should not be truncated whenexponent = 2
.(edit) I missunderstood your issue.
Added in the description of my python translation.
Python translation, please review and approve.
Java translation kumited, please review and approve.
Hi, I made a C# translation for this Kata, please review and approve.