Ask Your Question

andrewyg's profile - activity

2024-02-28 14:12:45 +0200 received badge  Famous Question (source)
2023-05-17 11:21:56 +0200 received badge  Famous Question (source)
2023-02-19 12:05:08 +0200 received badge  Notable Question (source)
2023-02-19 12:05:08 +0200 received badge  Popular Question (source)
2022-12-31 21:21:35 +0200 received badge  Notable Question (source)
2022-04-12 12:59:36 +0200 received badge  Popular Question (source)
2021-09-30 17:34:00 +0200 received badge  Supporter (source)
2021-09-30 17:33:58 +0200 marked best answer Use LaTeX symbols (like \prime) in variables

So as we know declarations such as theta=var("theta") when output as LaTeX, they're automatically converted to corresponding LaTeX symbols ($\theta$ in this case), but it makes me wonder is it possible for us to use more complicated symbols? Like thetaprime=var("\\theta\\prime") (which obviously doesn't work, I've tried), but I would like to achieve something like this, so when I call latex(eq), all thetaprime variables are converted to $\theta\prime$.

2021-09-30 17:33:58 +0200 received badge  Scholar (source)
2021-09-30 14:31:02 +0200 received badge  Organizer (source)
2021-09-30 14:30:26 +0200 asked a question Use LaTeX symbols (like \prime) in variables

Use LaTeX symbols (like \prime) in variables So as we know declarations such as theta=var("theta") when output as LaTeX

2021-09-30 14:26:10 +0200 asked a question How to break long line of code in sageblock environment (SageTeX)

How to break long line of code in sageblock environment (SageTeX) So I have long codes written in sageblock which I woul

2021-09-30 05:52:02 +0200 asked a question Is it possible to ask sage check symbolic equality by comparing parts within equations?

Is it possible to ask sage check symbolic equality by comparing parts within equations? So I have a case with two compli

2019-12-15 06:22:14 +0200 commented question How can I calculate only the imaginary part of a complex number?

@John-Palmieri same both imag and real after squaring them they both doesn’t output real number

2019-12-14 05:33:32 +0200 received badge  Editor (source)
2019-12-14 05:02:05 +0200 asked a question How can I calculate only the imaginary part of a complex number?

So I have the following function which the x will be the difference between two point:

def complexDis(x): return sqrt((x.real()^2)+((x.imag()*-i)^2))

But it seems like i can’t actually operate the .real or .imag number or at least I can’t print it out with N(conplexDis(b-a)) so im asking how can I achieve my goal?

2019-08-27 09:18:18 +0200 received badge  Student (source)
2019-08-27 09:14:23 +0200 asked a question How can I solve line equation in SageMath?

So we know we got standard 2D line equation that looks like y=a*x+b. And now I want to solve the a,b by given a few points. How can I achieve it?

I remember I've seen the solution somewhere, but I just can't find it out now.