trueagi-io / metta-examples

Discussion of MeTTa programming with examples
MIT License
14 stars 15 forks source link

Chapter_1_3 finished #27

Closed DaddyWesker closed 7 months ago

DaddyWesker commented 7 months ago

@vsbogd

DaddyWesker commented 7 months ago

@vsbogd all those assertEquals works with or without lambda2 typedef. Though I haven't tested them on a current main. I was using like week+ old metta. I'll check and post result here.

I was thinking on splitting this chapter to two parts, one will contain only code working with no lambda2 typedef, other part will contain all the other examples. But this will break exercise order. What do you think?

vsbogd commented 7 months ago

I was thinking on splitting this chapter to two parts

I like this idea if it can be done it would make it simple to test the code.

DaddyWesker commented 7 months ago

Ok. I'll split chapter then.

DaddyWesker commented 7 months ago

Okay, so I've splitted chapter 1.3 to two parts. (newtons-method (cubic 1 2 3) 1) works for me. But n_root for some reason refused to work. I've spent several hours to understand why and still no clue. It worked previously. Maybe on the previous build of metta.

Also, exercise 1.36 currently not working. It shows intermediate approximations but on the last step it fails. And here I've spent some time too. So, currently it is FIXME. I'll try to understand what is wrong.