Gonzalo Garcia

140 Reputation

6 Badges

14 years, 0 days

MaplePrimes Activity


These are replies submitted by

@vv Thanks!! Nice, really nice code!

@mmcdara  Thanks for your code!

Hi!!

It seems that I have solved the problem: In the file IFF_v2.mw, I have changed  global NunFun:=n-1 by global NunFun:=n  in the procedure "CreateDataSet".

@acer many thanks! Now it works.

Great @Rouben Rostamian  !!! It seems that your code works fine..Thanks!! 

@vv thanks.

As you say, "t it is easy to implement a Lebesgue filling curve in any dimension (just a few lines in Maple". In fact, you are a post with this issue:

https://www.mapleprimes.com/questions/220980-Convert-Peano-Curve-Into-A-Function

 

 

@vv thanks for your reply. Your code is for Maple 2020, right? In the paper linked in my post, the code (in C) is for the n-dimensional Hilbert curve, and for its  "pseudo-inverse"

 

@Carl Love The version is  Maple 17.00

@acer You are right, I am not using the 17v, sorry by the confussion.

@tomleslie Tanks for your reply. In Maple 17 your code returns me the error

Error, `Fractals` does not evaluate to a module
 

However, the attached txt contains procedures to (numerically) compute H(t), H being the (approximation of the ) Hilbert curve and t a point in [0,1], as well as the pseudo inverse of H.

Regards.

@Carl Love Mmm....I am not sure at all, but I would have to review the article in more detail but it is likely that I am wrong.

In the paper entitled "One-Dimensional Global Optimization for Observations with Noise" by Calvin and Zilinskas, says that for the global optimization fo a single vairable function with noise (normal 0,1)  "...a Wiener process is accepted as a statistical model of the objective function."

 

@Carl Love Great!! Niw the code seems to work fine! Thank you very much.

@Carl Love Thanks!! Your code returns me the following error:

 

Error, (in Calvin) Insert is not a command in the ArrayTools package

 

I use Maple 2015, it seems that the "Insert" optiion is not valid for "ArrayTools":

with(ArrayTools);
 [AddAlongDimension, Alias, AllNonZero, AnyNonZeros, Append, BlockCopy, CircularShift, ComplexAsFloat, Compress, Concatenate, Copy, DataTranspose, Diagonal, Dimensions,  ElementDivide, ElementMultiply, ElementPower, Extend, Fill,  FlipDimension, HasNonZero, HasZero, IsEqual, IsZero, LowerTriangle, MultiplyAlongDimension, NumElems, Permute,  PermuteInverse, RandomArray, RegularArray, RemoveSingletonDimensions, Replicate, Reshape, SearchArray,  Size, Uncompress, UpperTriangle]

 

The option

Is not "compatible" with "Digits:=26"?

 

Again, thanks,

@Carl Love Thanks, you are right: I have not chosen the appropiate sequence! However, taking theta_n:=log(2+n) or theta_n:=(n)^1/4, the results have not "improved substantially".

 

Again, thanks.

@Carl Love  I'm very sorry for the distraction, the correct article is this:

  https://www.sciencedirect.com/science/article/pii/S0885064X01905746  

Basically, I have tried to follow the code given in Fig. 1, p 309 of the PDF. In step 4, the maximum of the indicated probability is given explicitly in formula (12) p 312. (the numbers Y_n, rho_n, etc are defined in p 311)

About the "try... catch": really, I think that the algorithm does not return an error.

Again, thank you very much.

1 2 3 4 5 Page 1 of 5