Ask Your Question

masac's profile - activity

2019-07-22 14:12:19 +0200 received badge  Famous Question (source)
2018-03-01 11:56:26 +0200 received badge  Popular Question (source)
2018-03-01 11:56:26 +0200 received badge  Notable Question (source)
2017-02-14 14:34:41 +0200 received badge  Teacher (source)
2017-02-14 14:34:41 +0200 received badge  Self-Learner (source)
2016-03-28 13:57:11 +0200 received badge  Notable Question (source)
2016-03-28 13:57:11 +0200 received badge  Popular Question (source)
2016-03-28 13:57:11 +0200 received badge  Famous Question (source)
2014-10-26 17:59:31 +0200 answered a question Domain and range in Sage Math

Thank you. Domain/ Range I try to do the same operations in Sage.

2014-10-26 14:51:29 +0200 asked a question Domain and range in Sage Math

How do i find the domain and range in Sage Math of a function:

f(x) = x/(x^2-1)
g(x) = e^(-x^2) ?
2014-10-18 18:16:17 +0200 received badge  Editor (source)
2014-10-18 18:09:42 +0200 answered a question Divisibility

I tried:

sage: a=range(7000,8000)
sage: print[a if a%7==0]
  File "<ipython-input-30-590163f2a51e>", line 1
print[a if a%Integer(7)==Integer(0)]
                                   ^
 SyntaxError: invalid syntax

I find a solution:

print [a for a in [7000..7999] if a%7==0]

Thank you for support.

2014-10-18 17:48:27 +0200 commented question Divisibility

Thank you for edit.

2014-10-18 17:32:22 +0200 asked a question Divisibility

To find numbers of the form 7aaa that are multiples of 7, I use:

sage:print [a for a in [0..9] if (7000+111*a)%7==0]
[0, 7]

I do not know how to write for 7|7abc.

Thanks.