[Scilab-users] Function

jasper van baten jasper at amsterchem.com
Tue Sep 29 16:23:24 CEST 2015


I think you are missing brackets there, presuming .^ now operates on the 
sum?

Best wishes,

Jasper.

On 9/29/2015 16:20, Serge Steer wrote:
> Le 29/09/2015 15:58, Peter Q. a écrit :
>>
>> Hi.
>> I need your help.
>> Is there a function for distance between two points?
>>
> If your points are given by cartesian coordinates stored in 2 arrays  
> p1 and p2
> you can compute the distance between these 2 points with
> norm(p2-p1)
> or equivalently by
> sqrt(sum(p2-p1).^2)
> Serge Steer
>>
>> Thanks in advance.
>>
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150929/b8c809e4/attachment.htm>


More information about the users mailing list