float numbers in lterm

Asked by MohammadMohammadidoust on 2021-01-04

Dear Sir/Madam

As it's been mentioned in manual , it is impossible to add float numbers, such as sqrt(5), 2.45 and etc , in lagrangian terms in lanhep.
I am looking for a implement a lagrangian which contains these kind of terms.
I think we can do it by introducing extra parameters. for example:

parameter alpha =22.
parameter alpha2= sqrt(7)*alpha.

lterm alpha2* gamma.

instead of :

parameter alpha=22.

lterm sqrt(7)*alpha*gamma.

this way works but it needs to declare extra parameters.
is there any better way to solve this question ?
many thanks

Question information

Language:
English Edit question
Status:
Solved
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Solved by:
Alexander Pukhov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alexander Pukhov (pukhov) said :
#1

Your solution is the best.

Alexander Pukhov

On 1/4/21 11:01 AM, MohammadMohammadidoust wrote:
> New question #694780 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/694780
>
> Dear Sir/Madam
>
> As it's been mentioned in manual , it is impossible to add float numbers, such as sqrt(5), 2.45 and etc , in lagrangian terms in lanhep.
> I am looking for a implement a lagrangian which contains these kind of terms.
> I think we can do it by introducing extra parameters. for example:
>
> parameter alpha =22.
> parameter alpha2= sqrt(7)*alpha.
>
> lterm alpha2* gamma.
>
> instead of :
>
> parameter alpha=22.
>
> lterm sqrt(7)*alpha*gamma.
>
>
>
> this way works but it needs to declare extra parameters.
> is there any better way to solve this question ?
> many thanks
>

Revision history for this message
MohammadMohammadidoust (m23mohamadidoust) said :
#2

thank you very much

Revision history for this message
MohammadMohammadidoust (m23mohamadidoust) said :
#3

Thanks Alexander Pukhov, that solved my question.

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#4

Actually this is the only solution --to use float numbers you should
introduce them through a parameter.
Alexander Belyaev

On 04/01/2021 09:41, Alexander Pukhov wrote:
> Question #694780 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/694780
>
> Status: Open => Answered
>
> Alexander Pukhov proposed the following answer:
> Your solution is the best.
>
> Alexander Pukhov
>
>
> On 1/4/21 11:01 AM, MohammadMohammadidoust wrote:
>> New question #694780 on CalcHEP:
>> https://answers.launchpad.net/calchep/+question/694780
>>
>> Dear Sir/Madam
>>
>> As it's been mentioned in manual , it is impossible to add float numbers, such as sqrt(5), 2.45 and etc , in lagrangian terms in lanhep.
>> I am looking for a implement a lagrangian which contains these kind of terms.
>> I think we can do it by introducing extra parameters. for example:
>>
>> parameter alpha =22.
>> parameter alpha2= sqrt(7)*alpha.
>>
>> lterm alpha2* gamma.
>>
>> instead of :
>>
>> parameter alpha=22.
>>
>> lterm sqrt(7)*alpha*gamma.
>>
>>
>>
>> this way works but it needs to declare extra parameters.
>> is there any better way to solve this question ?
>> many thanks
>>

--
______________________________________________________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev

School of Physics & Astronomy, University of Southampton
Office 5047, SO17 1BJ, TEL: +44 23805 98509, FAX: +44 23805 93910
.....................................................................
Particle Physics Department, Rutherford Appleton Laboratory
Didcot, OX11 0QX, TEL: +44 12354 45562, FAX: +44 12354 46733
.....................................................................
CERN, CH-1211 Geneva 23, Switzerland
Office 40/1-B20, Mailbox: E27910, TEL: +41 2276 71642
______________________________________________________________________