Hi,

On Oct 17, 2013, at 7:54 AM, hkng <h...@fsu.edu> wrote:

> 
> 
> As Gerd pointed out not an easy problem. However, Perl will automatically 
> take the numeric part of a variable if you do a arithmetic operation. For 
> example, if you do the following.
> 
> $vx = $vi_submitted+1;
> $vx--;
> 
> then $vx will be just the numeric value. Works with exp too but not something 
> like 1.23x10^3 m/s.  

Right, LON-CAPA understands a lot that Perl does not.

But in any case, I would not do this. If certain units are expected, they 
should be given in the problem. Otherwise, the nature of physics is that any 
units with the right dimensions are appropriate.

- Gerd.
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

Reply via email to