Ask Your Question

Miroslaw's profile - activity

2024-02-27 12:44:50 +0200 received badge  Popular Question (source)
2023-09-13 19:08:04 +0200 received badge  Famous Question (source)
2023-08-25 15:47:25 +0200 received badge  Famous Question (source)
2023-07-11 15:43:44 +0200 received badge  Famous Question (source)
2023-07-05 16:36:58 +0200 received badge  Notable Question (source)
2023-07-05 16:36:58 +0200 received badge  Popular Question (source)
2023-05-10 21:34:11 +0200 received badge  Popular Question (source)
2023-03-07 00:49:27 +0200 received badge  Popular Question (source)
2023-03-07 00:45:59 +0200 received badge  Popular Question (source)
2023-02-21 15:45:05 +0200 edited question ecdsa-revealing-the-private-key-from-four-signed-message-two-keys-and-shared-nonces

ecdsa-revealing-the-private-key-from-four-signed-message-two-keys-and-shared-nonces I have prepared 4 transactions for 2

2023-02-21 15:44:13 +0200 asked a question ecdsa-revealing-the-private-key-from-four-signed-message-two-keys-and-shared-nonces

ecdsa-revealing-the-private-key-from-four-signed-message-two-keys-and-shared-nonces I have prepared 4 transactions for 2

2023-02-16 07:20:47 +0200 received badge  Notable Question (source)
2022-08-06 23:20:31 +0200 received badge  Popular Question (source)
2021-11-07 10:08:13 +0200 answered a question Sage problem - diff results in local version and https://sagecell.sagemath.org/

problem solved. I have write file as .py not as .sage when you run sage file.py , it is not the same as sage file.sage

2021-11-06 23:20:55 +0200 asked a question Sage problem - diff results in local version and https://sagecell.sagemath.org/

Sage problem - diff results in local version and https://sagecell.sagemath.org/ Hello I have no idea what is doing wron

2021-09-08 03:36:39 +0200 received badge  Notable Question (source)
2021-08-28 08:53:02 +0200 answered a question linear distance

solved task

2021-08-28 08:52:26 +0200 received badge  Enthusiast
2021-08-22 15:53:32 +0200 commented question linear distance

could you describe how to solve log problem for point 0 -> when P1 = P2? and show as example?

2021-08-21 22:08:55 +0200 commented question linear distance

yes, but we know when those two Points P1 and P2 are equal. maybe from this expression ca be calculate?

2021-08-21 09:26:19 +0200 commented question linear distance

yes, but i need in integer value not point. i mean k not k*P

2021-08-20 09:29:44 +0200 edited question linear distance

linear distance Hello I want to take linear distance beetween two points on Eliptic curve: curve : y2=x3+7 secp256k1

2021-08-20 09:27:33 +0200 edited question linear distance

linear distance Hello I want to take linear distance beetween two points on Eliptic curve: curve : y2=x3+7 secp256k1

2021-08-20 09:20:23 +0200 commented question linear distance

edited question

2021-08-20 09:20:01 +0200 edited question linear distance

linear distance Hello I want to take linear distance beetween two points on Eliptic curve: curve : y2=x3+7 secp256k1

2021-08-19 20:32:29 +0200 commented question linear distance

linear distance: How far are points from each other in integer values not in x,y coordinate

2021-08-17 18:12:05 +0200 commented question linear distance - math calc

Yes, but have no idea, any help welcome:)

2021-08-17 17:41:24 +0200 edited question linear distance - math calc

linear distance - math calc I got problem , and don't know how to calculate: d = s1 * x2 - s2 * x1 we know only value

2021-08-17 17:41:06 +0200 edited question linear distance - math calc

linear distance - math calc I got problem , and don't know how to calculate: d = s1 * x2 - s2 * x1 we know only value

2021-08-17 17:39:50 +0200 edited question linear distance - math calc

linear distance - math calc I got problem , and don't know how to calculate: d = s1 * x2 - s2 * x1 we know only value

2021-08-17 17:39:18 +0200 edited question linear distance - math calc

linear distance - math calc I got problem , and don't know how to calculate: d = s1 * x2 - s2 * x1 we know only value

2021-08-17 17:38:50 +0200 asked a question linear distance - math calc

linear distance - math calc I got problem , and don't know how to calculate: d = s1x2 - s2x1 we know only value : d an

2021-07-15 23:14:35 +0200 asked a question linear distance

linear distance Hello I want to take linear distance beetween two points on Eliptic curve: curve : y2=x3+7 secp256k1

2021-07-12 16:12:33 +0200 marked best answer please explain math.sqrt(n)

Hello Dear all

I tried understand :

import math
n=115792089237316195423570985008687907852837564279074904382605163141518161494337
d= math.sqrt(n)
print(d)
print(d==2**128)
print(d*d==n)
u=d*d
print(u)
print(n-u)

result: how it is possibility that sqrt(n) *sqrt(n) is equal n if it is not?:)

2021-07-12 16:12:16 +0200 received badge  Citizen Patrol (source)
2021-07-12 16:12:14 +0200 commented answer please explain math.sqrt(n)

o thank you

2021-07-12 14:11:37 +0200 edited answer please explain math.sqrt(n)

so how to take sqrt from n then?

2021-07-12 14:11:23 +0200 commented answer please explain math.sqrt(n)

so how to take sqrt from n?

2021-07-12 14:03:12 +0200 answered a question please explain math.sqrt(n)

so how to take sqrt from n then?

2021-07-12 12:36:41 +0200 asked a question please explain math.sqrt(n)

please explain math.sqrt(n) Hello Dear all I tried understand : import math n=1157920892373161954235709850086879078528

2021-06-15 21:08:11 +0200 received badge  Popular Question (source)
2021-06-02 15:34:25 +0200 marked best answer Sage - problem during dividing

I'm using https://sagecell.sagemath.org/ I tried divide by 2 some integers like:

test no 1:
integer to divide                                      : 1178491952578374405023980117478966721  
after divide by 2                                      :  589245976289187203169105266910167040
multiply by 2 to get integer before divide : 1178491952578374406338210533820334080

test no 2:
integer to divide                                      : 1061618174439266951056499776554456999
after divide by 2                                      : 530809087219633493358671479116398592
multiply by 2 to get integer before divide : 1061618174439266986717342958232797184

test no 3:
integer to divide                                      : 1272974170381429325805079139420165714
after divide by 2                                      : 636487085190714687068002546205327360
multiply by 2 to get integer before divide : 1272974170381429374136005092410654720

why result after divide is wrong??

If I change language from sage to python is even worst...

code:

    import random

def delete_0(value):
    report = False
    len_s=len(value)
    while report == False:
        if value[len_s-1] == "0":

            report = False
            #print("przed :",value)
            value=value[:-1]
            #print("po :",value)
            len_s=len(value)
        if value[len_s-1] != "0":
            report = True
        if len(value)==1:
            report = True
    return value        

def printStr(FloatNumber, Precision):
    return "%0.*f" % (Precision, FloatNumber)




def gen_value(liczba):
    d = liczba

    l =[]

    ile = len(str(d))
    w = printStr(d,ile)
    l = str(w).split(".") 
    w = l[1]
    r = delete_0(w)
    return l[0] +"."+r

#number to divide as random.randrange
number =  1272974170381429325805079139420165714 #random.randrange((2**119),2**120)

to_test = number
print("number to divide by 2 : ",number)

number =(number /2)  
print("i-th divide: ",i," # after divide : ",number)
print("i-th divide: ",i," # after divide : ",Reals(120)(number))
print("number as more precisied: ",gen_value(number))

print("Test : after multiply * 2 is equal? ",(float(number)+float(number) ) == to_test)
2021-06-02 15:32:42 +0200 marked best answer how to get value without e?

calculation: print(1/664613997892457936451903530140172288)

result in sage : 1/664613997892457936451903530140172288

result in python: 1.504632769052528e-36

how to get number without e-36? I need exactly number of divided.

2021-06-02 15:32:21 +0200 marked best answer problem with float not equals but should be equals? problem

Dear Collegues

I have a problem with checking equals float numbers: code:

d = 0.2
u = d - 1
up = d - 0.5
r = u

for i in range(1,7):
    r = r + 0.1
    print(i,r,up)
    if r == up :
        print("equal","r",r,"=","up",up)
        break;

output:

1 -0.700000000000000 -0.300000000000000
2 -0.600000000000000 -0.300000000000000
3 -0.500000000000000 -0.300000000000000
4 -0.400000000000000 -0.300000000000000
5 -0.300000000000000 -0.300000000000000
6 -0.200000000000000 -0.300000000000000

in line 5 -> it should print that are equals... what is wrong?