Re: [Scilab-users] How to print int64 or uint64 integers at full accuracy?

2016-08-28 Thread Samuel Gougeon
In the SCI/modules/string/sci_gateway/cpp/sci_string.cpp source file, is defined types::Function::ReturnValue *intString*(T* pInt, types::typed_list &out) { int iDims = pInt->getDims(); int* piDimsArray = pInt->getDimsArray(); types::String *pstOutput = new types::String(iDims, piDimsA

Re: [Scilab-users] How to print int64 or uint64 integers at full accuracy?

2016-08-28 Thread Tim Wescott
A kludge would be to make it into two integers. This works for positive integers, but verifying (or modifying) the algorithm to signed numbers is left as an exercise to the reader: A = (some 64-bit constant) A_1 = A / 10; A_0 = A - A_1 * 10; if (A_1 == 0) mprintf("A = %d\n", A)

[Scilab-users] How to print int64 or uint64 integers at full accuracy?

2016-08-28 Thread Samuel Gougeon
Hello all, I am wondering how it is possible to print (in a file, in a string) new 64 bit integers, at full accuracy. Their relative accuracy is better than for decimal numbers (1/2^63 instead of %eps=1/2^52). In Scilab 5, digits lower than 1/%eps -- that are somewhat randomly set -- can be di

Re: [Scilab-users] Newbie Question: Dynamic Programming/Sequence Alignment Algorithms

2016-08-28 Thread Samuel Gougeon
Hello, Le 24/07/2016 14:30, Dragonmaw a écrit : Hello there, i need to align (unequally long) time series, computing their minimal euclidean distance alignment. I believe this is being done optimally with dynamic programming. Algorithms exist from biocomputing or speech recognition, but the

Re: [Scilab-users] Using the Function fsolve

2016-08-28 Thread Samuel Gougeon
Le 28/08/2016 22:48, Robert Sherry a écrit : Samuel, Thanks for the response. While the example, I showed is linear, the equations I want to solve are not. I am thinking I need a third function which returns a vector. Am I on the right track? . Then it would have been great to post a non-line

Re: [Scilab-users] Using the Function fsolve

2016-08-28 Thread Robert Sherry
Samuel, Thanks for the response. While the example, I showed is linear, the equations I want to solve are not. I am thinking I need a third function which returns a vector. Am I on the right track? Bob On 8/28/2016 4:31 PM, Samuel Gougeon wrote: Le 28/08/2016 22:03, Robert Sherry a écrit :

Re: [Scilab-users] Using the Function fsolve

2016-08-28 Thread Samuel Gougeon
Le 28/08/2016 22:03, Robert Sherry a écrit : I defined the following two functions: function [z]=f(x,y) z = x + y - 8 endfunction function [z]=g(x,y) z = 2*x + y - 8 endfunction I then wanted to find the roots of the two functions (equations). That is, I want a pair of numbers (a,b) such that

[Scilab-users] Using the Function fsolve

2016-08-28 Thread Robert Sherry
I defined the following two functions: function [z]=f(x,y) z = x + y - 8 endfunction function [z]=g(x,y) z = 2*x + y - 8 endfunction I then wanted to find the roots of the two functions (equations). That is, I want a pair of numbers (a,b) such that f(a,b) = g(a,b) = 0. So, I found the function

Re: [Scilab-users] Number to string with padding of leading blanks by a set of characters

2016-08-28 Thread Jens Simon Strom
Am 28.08.2016 16:32, schrieb Samuel Gougeon: Le 28/08/2016 16:17, Jens Simon Strom a écrit : Hello, I try to transform the number colum N containing integer elements from 1 to 999, e. g. N=[1;11;111] into T=["  1";" 11";"111"]. I tried with commands like justify, repmat, string, size, le

Re: [Scilab-users] Number to string with padding of leading blanks by a set of characters

2016-08-28 Thread Samuel Gougeon
Le 28/08/2016 16:17, Jens Simon Strom a écrit : Hello, I try to transform the number colum N containing integer elements from 1 to 999, e. g. N=[1;11;111] into T=["  1";" 11";"111"]. I tried with commands like justify, repmat, string, size, length - but without success. Do I miss one or m

Re: [Scilab-users] Number to string with padding of leading blanks by a set of characters

2016-08-28 Thread Stefan Du Rietz
Hello Jens, T = msprintf("%3i\n", N) Regards Stefan On 2016-08-28 16:17, Jens Simon Strom wrote: Hello, I try to transform the number colum N containing integer elements from 1 to 999, e. g. N=[1;11;111] into T=["  1";" 11";"111"]. I tried with commands like justify, repmat, string, size

[Scilab-users] Number to string with padding of leading blanks by a set of characters

2016-08-28 Thread Jens Simon Strom
Hello, I try to transform the number colum N containing integer elements from 1 to 999, e. g. N=[1;11;111] into T=["  1";" 11";"111"]. I tried with commands like justify, repmat, string, size, length - but without success. Do I miss one or more better adequate command(s)? Kind regards Je

Re: [Scilab-users] Regex problem

2016-08-28 Thread Jan Åge Langeland
Very good, a way of using logical operators that I was not aware of. Even this seems to works: data(data<32|data>127)=ascii(".") Thank you also Samuel for fixing the mgeti('l') bug. Both will help me a lot in reading and decoding some large seismic files. Jan Å On 28.08.2016 06:20, Samuel G

Re: [Scilab-users] ?==?utf-8?q? LateX support and verbatim

2016-08-28 Thread Antoine Monmayrant
Le Samedi, Août 27, 2016 19:24 CEST, philippe a écrit: > Hi, > > Le 26/08/2016 à 15:00, Antoine Monmayrant a écrit : > > Hi all, > > > > I tried to use verbatim text inside some latex string, but without success: > > > >titlepage("$\verb| \alpha |$") > > > > since text are displayed as