Ad
  • Default User Avatar

    I am sorry but could someone tell me how to calculate square roots of large numbers such as "1488099328131240642930278400000000" very precisely (round up to lower int) so that if I make x^2 I get "1488099328131240642930278400000000"±10 (approximately) as an output?

  • Default User Avatar

    I am surprise because I tought everyone used the way I used but seen none.
    Was the way I did the way it was intented ?

  • Default User Avatar

    My bad I re-read the description and saw that it was pairs between 1 and n and not sum(range(1,n)).
    Thank you anyway !

  • Default User Avatar

    My code works fine except I just don't understand why sometimes you need to return only one pair of integers when several others would work and sometimes you need to return more but not every single one of them.
    Could someone explain me this please?

  • Default User Avatar

    Why is it not an issue ? The result is not the good one since D is not as small as possible.

  • Default User Avatar

    Why [[69, 130], [87, 1310], [3, 4]] should return [[18078, 34060], [2262, 34060], [25545, 34060]] and not [[3588, 6812], [435, 6812], [5109, 6812]] since Fraction(69,130)+Fraction(87,1310)+Fraction(3,4) --> Fraction(9177, 6812)?

    Can someone give me a hint on this one ?

  • Default User Avatar

    I will unpublish it until its 100% working

  • Default User Avatar

    It's not a duplicate... I just learned about combinations in math class and thought it would be fun to try and make a kata about it

  • Default User Avatar

    Sorry first time I am creating my own kata and was struggling with a bunch of things.
    Anyway, I tested it as a random person would do multiple times and should be working...

  • Default User Avatar

    yes sorry I miss clicked on published...
    Now it should be working!

  • Default User Avatar

    Not gonna lie, I am quite new to coding... I started over the summer but didn't practice often until 2 weeks so I am not very familiar with all this stuff, especially complex in python since I have not even studied it yet in school.
    I think I am going to check this kata and modifie it a bit every now and again regarding people comments.
    Anyway you have been extremely helpful!
    Thank you very much :)

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    First, thank you !
    What I mean by coordinates is the coordinates that we would use to draw the figure in an axis made of real numbers.
    To answer your question, I just don't know how to deal with complex numbers in python.
    I just wante to contextualize this kata a bit but your probably right, I think I am going to ask people to return a set of coordinates in order to draw a figure in a circle.

  • Default User Avatar

    Sorry to bother you but it's my first kata...
    Could I know what you thought about it?

  • Default User Avatar

    fixed it thanks!!!

  • Loading more items...