Ask Your Question

masac's profile - activity

2019-07-22 07:12:19 -0600 received badge  Famous Question (source)
2018-03-01 04:56:26 -0600 received badge  Notable Question (source)
2018-03-01 04:56:26 -0600 received badge  Popular Question (source)
2017-02-14 07:34:41 -0600 received badge  Self-Learner (source)
2017-02-14 07:34:41 -0600 received badge  Teacher (source)
2016-03-28 06:57:11 -0600 received badge  Famous Question (source)
2016-03-28 06:57:11 -0600 received badge  Notable Question (source)
2016-03-28 06:57:11 -0600 received badge  Popular Question (source)
2014-10-26 11:59:31 -0600 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 08:51:29 -0600 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 11:16:17 -0600 received badge  Editor (source)
2014-10-18 11:09:42 -0600 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 10:48:27 -0600 commented question Divisibility

Thank you for edit.

2014-10-18 10:32:22 -0600 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.