Ask Your Question

Latex name of generators of number fields extending other number field

asked 2015-12-01 00:24:09 -0500

Stepan gravatar image

If I run this code

G.<alpha> = NumberField(x^2-2,latex_name='alpharedefined')
print latex(alpha) #show(alpha)
P.<t> = G[]
H.<beta> = NumberField(t^4-alpha,latex_name='betaredefined')
print latex(beta) #show(beta)

I don't get the latex name of beta redefined. It works for alpha ... Anyone can see where the problem is?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-12-01 10:26:31 -0500

Francis Clarke gravatar image

The problem is caused in the first place by a mistake in NumberFieldFactory. In line 610 of sage/rings/number_field/ 6.9), the latex_namedoesn't get passed on to the extension method of the base field.

Unfortunately, you cannot get round this by using extension directly; in this case:

sage: G.<alpha> = NumberField(x^2 - 2, latex_name='alpharedefined')
sage: print latex(alpha), G.latex_variable_name()
alpharedefined alpharedefined
sage: P.<t> = G[]
sage: H.<beta> = G.extension(t^4 - alpha, latex_name='betaredefined')
sage: print latex(beta), print H1.latex_variable_name()
\beta betaredefined

The inconsistencies here indicate that there are other things that need correcting in this part of the code.

edit flag offensive delete link more



This is now trac ticket 19657

Francis Clarke gravatar imageFrancis Clarke ( 2015-12-02 03:11:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-12-01 00:24:09 -0500

Seen: 57 times

Last updated: Dec 01 '15