Ask Your Question

ImproveME's profile - activity

2016-08-02 00:24:35 +0200 commented answer Problem with my for-loop

Thanks I'm not be use to solve ecuations sage but this more effective than my proposition . Im interested , What do I do if I want solve something like this?

list = [x for x in range (100) if mpmath.isint(mpmath.li(x))]
[]

Some solutions that I get "Manually"

Li(1.969047...) = 1

Li(2.825187...) = 2

2016-08-01 23:24:58 +0200 received badge  Scholar (source)
2016-08-01 23:24:52 +0200 commented answer Problem with my for-loop

Thank you for answering I´m so impressed , If I ´m correct the better solution will be stop ussing Sage and try luck with Mathematica , MatLab... Do you know any other possibility to do this using Sage?

2016-08-01 17:57:25 +0200 commented question Problem with my for-loop

Thanks for answering Yes , the problem that Im trying to solve is too complex to explain . But If I execute this code , that is a simplificacion of the problem, I suppose to get a list of the numbers that satisfy the condition in a range from 1 to 100 .

In this particulary case the answer it is a list with one number ( 19,25 ) but sage says that there isn´t any solution.

list = [x for x  in range (100) if (x + 0.75) == 20]
list
[]

But if I execute another code with and answer that it isn´t a decimal number , Sage give me a a solution

list = [x for x  in range (100) if (x + 1) == 20]
list
[19]

With this explanation , I want to know if is possible to get a solution from the first code or if the for command doesn´t support decimals numbers.

Thank ... (more)

2016-08-01 16:34:57 +0200 asked a question Problem with my for-loop

Does someone know how to get answer to this ?

list = [x for x in range (100) if (x + 0.75) == 20]

I was experimenting with Sage when computer says that there isn´t possible answer [] to this elementary maths problem .

There is any problem with using decimals number in a list?

I also try doing this : but it still doesn´t working

list = [float(x) for x in range (100) if (x + 0.75) == 20]

Thank you so much , Excuse my bad English! :))

2016-08-01 16:34:56 +0200 asked a question Lists with decimals

Does someone know how to get answer to this ? list = [x for x in range (100) if (x + 0.75) == 20] I was experimenting with Sage when computer says that there isn´t possible answer [] to this elementary maths problem . There is any problem with using decimals number in a list? I also try doing this : but it still doesn´t working list = [float(x) for x in range (100) if (x + 0.75) == 20]

Thank you so much , Excuse my bad English! :))