Ask Your Question

technossomy's profile - activity

2023-07-01 17:31:50 +0200 received badge  Notable Question (source)
2023-07-01 17:31:50 +0200 received badge  Popular Question (source)
2019-11-27 21:25:34 +0200 received badge  Scholar (source)
2019-11-27 12:19:13 +0200 asked a question Equation solver with assume

Odd behaviour: the following gives a solution:

x, c, k = var('x, c, k')
assume(k > 0)
assume(k, "integer")
solve(x**k == (k/c), x)

but the following does not:

x, c, k = var('x, c, k')
assume(k > 0)
assume(k, "real")
solve(x**k == (k/c), x)

I should be able to remove the assume(k, "datatype") completely, right?