python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to define a piecewise map in sage
I want to define in Sage the following
map. I've attempted to use the following code in Sage:
gamma=function('gamma')
gamma(t)=piecewise([(t>0,(t,0,e^(-1/t^2))),(t==0,(0,0,0)),(t<0,(t,e^(-1/t^2)...
ImHackingXD
Votes: 0
Answers: 1
How do I evaluate an expression with trignometric functions & also complex numbers in Sagemath?
I wanted to verify if n-th roots of unity are actually the n-th roots of unity?
i.e. if (root)^n = 1
I was trying to use sagemath to do this.
For e.g. for regular expressions sage seems to evaluate st...
user93353
Votes: 0
Answers: 1
how to add julia kernel in sage notebook for windows?
how to add julia kernel in sage notebook for windows?I have sagemath installed on windows but I can't install the kernel to use julia.
joão marcello pereira pereira
Votes: 0
Answers: 0
Does `continued_fraction(d)` for a quadratic field element d compute whole preperiod and period eagerly?
New to sage, toying with continued fractions. I noticed that my code experiences performance degradation when I use continued_fraction(d), where d is represented as a QuadraticField element, and the C...
Szczepan Hołyszewski
Votes: 0
Answers: 0