The MASM Forum

Projects => ObjAsm => Topic started by: HSE on October 14, 2016, 12:20:22 PM

Title: The Derivator
Post by: HSE on October 14, 2016, 12:20:22 PM
Hi!

This is a project that is evolving very slow, but begin to acomplish some objetives:

The rework of solution still is very bad   :biggrin: , but it's posible make some test (at least interface). And perhaps Rui could detect some miscalculation. For every variable there is 2 lines: the raw derivative and the reworked solution.

Of course will be more interesting with the code, but that will take me some time (it's a mess now).

Regards.HSE   

Nothing importat, I forget the instructions:
Variables are lower case letters except "e", letters between angle brackets are constant, numbers without point are integer, with point are floating, the functions now are ln, log2, log10, sin, cos, tg, arcsin, arccos, arctg and exp.


------------------------------------------------
Updated file 10/06/2017 (build BN10A222) :
------------------------------------------------
The file include interface sources and .res file.
(Still not correctly running the cleanner  8) )
Ml or AsmC. Use makeIt.bat
Title: Re: The Derivator
Post by: Biterider on October 14, 2016, 05:04:56 PM
Impressive, really cool  :t

Btw, there is a minor glitch on the upper inner window (blue) when you resize the app main window. A white horizontal strip appears on the lower half of the equation window.

Regards, Biterider
Title: Re: The Derivator
Post by: HSE on October 14, 2016, 11:33:56 PM
Thanks Biterider!!

Is good to know that the problem is not only here. I think the line is related with the margins I increased, surelly the scroll in Richedit don't manage automatically that.  Something to investigate!
Title: Re: The Derivator
Post by: jj2007 on October 15, 2016, 03:01:32 AM
The white ribbon occurs only occasionally here (W7-64). But there is a lot of flicker. Style is only WS_CHILD? What about ws_clip* etc?
Title: Re: The Derivator
Post by: HSE on October 15, 2016, 04:07:33 AM
Good point JJ!!

Code: [Select]
WS_CHILD or WS_VISIBLE or ES_MULTILINE or WS_VSCROLL or WS_BORDER or WS_TABSTOP
 These styles in Richedit allow wordwrap. I remember now there was an extended topic about flickering. I will try to find it. :t

The "white" ribbon is some error using EM_SETRECTNP when scroll is activated. I don't saw in the "dark" machine but perhaps is there.
Title: Re: The Derivator
Post by: jj2007 on October 15, 2016, 04:55:31 AM
You need or WS_CLIPCHILDREN when creating the main window, and
or WS_CLIPSIBLINGS when creating the controls.

invoke SendMessage, hRichEdit, EM_SETTARGETDEVICE, 0, 0 sets word wrap on.
Title: Re: The Derivator
Post by: HSE on October 15, 2016, 08:54:59 AM
Thanks JJ!

WS_CHILD style was alone. :(

There are main, sub-main, sub-sub-main and control window  :biggrin:.


The "white" ribbon disappear if there is no bottom margin.

Updated file is in first post.
Title: Re: The Derivator
Post by: Biterider on October 15, 2016, 05:11:30 PM
Hi Hector
This new update seems to solve the problem of the white band. I tested it on Win10.  :icon14:
Biterider
Title: Re: The Derivator
Post by: jj2007 on October 15, 2016, 08:32:12 PM
Perfect, no more flicker, no white band :t
Title: Re: The Derivator
Post by: HSE on October 16, 2016, 01:27:07 AM
Thanks  :t
Title: Re: The Derivator
Post by: RuiLoureiro on October 16, 2016, 09:03:10 AM
Hi HSE,
              Very well  :t
              Now you need to test it writing a lot of expressions.
              Go on !
Title: Re: The Derivator
Post by: HSE on October 21, 2016, 09:34:50 AM
Hi! Still with interface  :icon_eek: !!

   Now it's posible to change colors. Modifications are stored in a ".ini" file when application exit. (Binary in updated in first post)

  In making a new dialog, I found Resguard alert a leak in ColorButton . With minor modification there is  no more leak, but surely need to be more evaluated.

Regards. HSE
Title: Re: The Derivator
Post by: Biterider on October 21, 2016, 06:14:49 PM
Thanks, I'll look into it.

Biterider
Title: Re: The Derivator
Post by: HSE on November 29, 2016, 11:42:24 AM
Just a little better the cleaner.

There are some... insignificant... crashes  :biggrin: Curiously don't happen when ObjAsm32 debug mode is activated  ::)

Update in first post. Regards.
Title: Re: The Derivator
Post by: HSE on December 30, 2016, 12:22:59 AM
I think now it's working correctly, at least better.

But I still not finded what was wrong with the debug system.

Update in first post. Regards.
Title: Re: The Derivator
Post by: Biterider on December 30, 2016, 07:23:17 AM
Works OK with Win10  :eusa_clap:

Biterider
Title: Re: The Derivator
Post by: HSE on December 31, 2016, 12:38:58 AM
Thanks Biterider!

New tests fail, and I expect Rui (and others) fund more errors. The main proceses code still are a mess, but the frame code is becoming more readable.

Regards.   

LATER: Solved last problem. Updated http://masm32.com/board/index.php?topic=5725.msg61048#msg61048
Title: Re: The Derivator
Post by: HSE on January 03, 2017, 04:49:35 AM
The differentiation process is now configurated to find first and second derivatives, and first and second partial derivatives. It's posible to change that from options menu. Updated in first post (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048)
Title: Re: The Derivator
Post by: RuiLoureiro on January 20, 2017, 11:04:16 AM
Thanks Biterider!

New tests fail, and I expect Rui (and others) fund more errors. The main proceses code still are a mess, but the frame code is becoming more readable.

Regards.   

LATER: Solved last problem. Updated http://masm32.com/board/index.php?topic=5725.msg61048#msg61048 (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048)
Hi HSE,
            i will do it when i have some more time.
            i will do, but now i have a lot of work to do !
See you  :t
Title: Re: The Derivator
Post by: HSE on February 13, 2017, 11:37:35 PM
Hi!

added in the new building (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048):

 - preliminary error checking.
 - optional function names solution ( a lot of interface work  8) ).

Only working the first functions (the originals), and some critical errors in the cleanner still there.
Title: Re: The Derivator
Post by: HSE on May 13, 2017, 02:56:08 AM
Hi!

added in the new building (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048):

       - interface: list of functions.
Title: Re: The Derivator
Post by: Biterider on May 13, 2017, 04:26:34 PM
Hi Hector
The new Version works perfect here.  :t
Regards, Biterider
Title: Re: The Derivator
Post by: HSE on May 13, 2017, 10:39:10 PM
Thanks Biterider!!

With this modification most of the interface is finished, and I began to clean the code. The solution still is not good but that part will be a library until work properly (if ever  :biggrin:)
Title: Re: The Derivator
Post by: HSE on June 11, 2017, 04:27:14 AM
- Added the option to change names functions between my originals, and Rui names (but only 8 of 40 used in The Calculator).
- Also source of interface. Use makeit.bat.

Regards. HSE