Retired
Numerical Solution of Initial-Value Problems (retired)
Loading description...
Numerical Analysis
Algorithms
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.
What about this?
This comment has been hidden.
The reference solution times out sometimes, for example, with this input from the random tests:
[4, 4, 1, -5], [0, 0.2], 0.0
.I fixed that. Now the last value from the input data will be always greater than 0.1
Function name
two_oldest_ages
in initial solution doesn't match the expectedinit_val_problem
Thanks, it was by accident. I fixed this issue.
Several suggestions:
[a, b, c, d]
. Then, you should include static tests with corner casesd + b/a == 0
, because it produces differential equation of other form.test.approx_equals
or whatever it's called.I agree. There is also already a kata on Euler's method. Maybe enforce a more efficient algorithm (and defo make it non-analytical)?
I would suggest to make kata with differential equation, that does not have analytical solution (i.e. riccati system) and enforce large difference between
y(0)
andy(T)
. Furthermore, as Unnamed suggested, you should disable some Python modules, that allow user to cheat the kata.Now I've found the kata that concerns the Euler's method. I've been planning to create the whole series about solving systems of differential equations and I wanted to start off with something easy. Maybe I will transform the task into the system of two equations or, as rge123 suggested, I will enforce improved Euler's method.
Answering dolamroth suggestions:
Now I am aware that I should disable some functions but I can not figure it out. How to block a function? I know it may be a silly question but I've been trying to find this out and no success.
This comment has been hidden.
About forbidding modules: Here is old code from one of my katas, it would give you the general idea. You need to include this code in
Preloaded
section. (note, thattest
isimport codewars_test as test
)