# TFormula issue in root\_6.14.04

**URL:** <https://root-forum.cern.ch/t/tformula-issue-in-root-6-14-04/31386>\
**Category:** Newbie\
**Created:** [October 31, 2018, 6:34pm UTC](https://root-forum.cern.ch/t/tformula-issue-in-root-6-14-04/31386 "2018-10-31T18:34:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wattsjw](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wattsjw/32/24985_2.png) [@wattsjw](https://root-forum.cern.ch/u/wattsjw)\
**Post date:** [October 31, 2018, 6:34pm UTC](https://root-forum.cern.ch/t/tformula-issue-in-root-6-14-04/31386/1 "2018-10-31T18:34:46Z")

</div>

If I do:

root [0] TFormula a;  
root [1] a.AddVariable(TString(“b”),0);  
root [2] a.AddParameter(TString(“c”),0);

Root returns normal.

If I don’t do line 1 “a.AddVariable(TString(“b”),0);” root hangs and does not return. I am using the downloaded binary for root\_6.14.04 for Centos 7.5.  
root\_6.12.06 does not hang.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [November 1, 2018, 9:43am UTC](https://root-forum.cern.ch/t/tformula-issue-in-root-6-14-04/31386/2 "2018-11-01T09:43:52Z")

</div>

Hi,

master says:

> [@wattsjw](#):
>
> TFormula a;  
> a.AddParameter(TString(“c”),0);

`Error in <TFormula::ProcessFormula>: Formula "" is invalid !`

That’s the right behavior - you’re adding a new parameter to an empty `TFormula`. @moneta do we have an example of the use of `AddParameter()`?
