News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

TheCalculator-new powerful version 2017

Started by RuiLoureiro, April 08, 2017, 08:03:13 AM

Previous topic - Next topic

HSE

Unsimplified sumatory of simplified terms solutions?  :biggrin:
Equations in Assembly: SmplMath

RuiLoureiro

Quote from: HSE on April 26, 2017, 10:26:48 AM
Hi Rui!!

What purpose have this in the input box:+ln(-x^2/b)     -ln(-x^2/b)

You can simplify the input 8)
Hi HSE,

What input ? What do you mean ? Give an example please

guga

Oi Rui

Small suggestion :)

Can you rebuild the gui to it be a bit more user friendly ? For example, displaying the result on a unique edit control (or rich edit control) that displays the several solutions possible, maybe display it in a form similar to http://www.wolframalpha.com

And, also, making it produce possible roots.

Btw...are you sure about some results ??

I just inputed:

(x^2-x*sin(x-x^2))'

and after pressing "compute" it resulted in:

2*x-[sin(x-x^2)+x*(1-2*x)*cos(x-x^2)]

But....is it correct ?? According to www.wolframalpha.com, the same input is unrolled with the possible solutions:

x (x - sin(x - x^2))
or
-x (sin(x - x^2) - x)
or
x^2 - x sin(x) cos(x^2) + x sin(x^2) cos(x)

Which are different from what you found.

I did this:

From wolfrang, i placed your equation as input in one window and your solution as input in another window and both results differs.

According to wolfrang, this (x^2-x*sin(x-x^2))
is not the same as 2*x-[sin(x-x^2)+x*(1-2*x)*cos(x-x^2)]


i made the proof, simply replacing x with 5 (just to give me some values to test the results)

And the results differs:

taking x = 5
(x^2-x*sin(x-x^2)) = 26.71010071662834366522049807341129790381541683757080314232...

2*x-[sin(x-x^2)+x*(1-2*x)*cos(x-x^2)] = 52.62818807869154601547901709429517572789244940941506911752...





Just click here to you see what i mean:
http://www.wolframalpha.com/input/?i=(x%5E2-x*sin(x-x%5E2))
http://www.wolframalpha.com/input/?i=2*x-(sin(x-x%5E2)%2Bx*(1-2*x)*cos(x-x%5E2))

or
http://www.wolframalpha.com/input/?i=(5%5E2-5*sin(5-5%5E2))
http://www.wolframalpha.com/input/?i=2*5-(sin(5-5%5E2)%2B5*(1-2*5)*cos(5-5%5E2))
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

guga

Another example of error ?

Quote; example of C' - C is a function of x with nested functions

input box=>     [cos(x^2-tan(3*pi*x))]'

solution box1=> -( 2*x - 3*pi*sec(3*pi*x)^2) * sin(x^2-tan(3*pi*x))

This seems incorrect.

According to wolfrang, the result are different

http://www.wolframalpha.com/input/?i=cos(x%5E2-tan(3*pi*x))

is not the same as:

http://www.wolframalpha.com/input/?i=-(+2*x+-+3*pi*sec(3*pi*x)%5E2)+*+sin(x%5E2-tan(3*pi*x))

They produces different results for x

The possible forms are:

sin(x^2) sin(tan(3 π x)) + cos(x^2) cos(tan(3 π x))
cos(x^2 - 1/3 tan(PI x) - (4 sin(2 PI x))/(3 (2 cos(2 PI x) - 1)))
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

RuiLoureiro

Quote from: HSE on April 27, 2017, 09:18:36 AM
Unsimplified sumatory of simplified terms solutions?  :biggrin:
Understand: it was used for testing HSE.

RuiLoureiro

Olá Guga,
It's very simple: it (seems) you dont know what you are doing.
note: explanatios: $300 per minute for you only today - very cheap...
See you


guga

Ouch $$$$  :P

Indeed...the "'" sign at the end of the equation was for the derivative  :icon_mrgreen: :icon_mrgreen:

I took the input from your example, but didn´t took attention for the derivative results from yours and wolfrang´s :greensml: :greensml:

Quoteexample of C' - C is a function of x with nested functions

input box=>     [cos(x^2-tan(3*pi*x))]'

solution box1=> -( 2*x - 3*pi*sec(3*pi*x)^2) * sin(x^2-tan(3*pi*x))
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

RuiLoureiro

Quote from: guga on April 28, 2017, 07:40:36 AM
Ouch $$$$  :P

Indeed...the "'" sign at the end of the equation was for the derivative  :icon_mrgreen: :icon_mrgreen:

I took the input from your example, but didn´t took attention for the derivative results from yours and wolfrang´s :greensml: :greensml:

Quoteexample of C' - C is a function of x with nested functions

input box=>     [cos(x^2-tan(3*pi*x))]'

solution box1=> -( 2*x - *pi*sec(3*pi*x)^2) * sin(x^2-tan(3*pi*x))
Brincando, não ?
wolframa, não gosto nada daquilo
http://masm32.com/board/index.php?topic=6197.0

jack

hello RuiLoureiro :P
your simplifier is really good but according to Maple the last 5 derivatives in TheCalculator_derivatives04.txt should be 0

RuiLoureiro

#24
Quote from: jack on May 01, 2017, 03:25:40 AM
hello RuiLoureiro :P
your simplifier is really good but according to Maple the last 5 derivatives in TheCalculator_derivatives04.txt should be 0
Hello Jack
           First of all, thank you for your reply.

a) About «your simplifier is really good»:
           Yes seems to do what it should do.
           Tommorrow, i will post the new version .02
           because it does not simplify ln(a*x^-1/b), for instance.

b) About «according to Maple the last 5 derivatives
          in TheCalculator_derivatives04.txt should be 0»

          According to basic algebra rule,  A-A=0 for any A.
          So, if we have in the input box:  A-A+B-B (=0)
          we have 0. So each group of 4 (not 5) functions in the input box
           ( and solution box, of course ) are 0
          [log(x/b)       -log(x/b)    +log(-x/b)     -log(-x/b)=0]
          and then 0'=0. Then the sum is 0 also. The derivative of
          any constant is 0, cannot be any function of x.

          So
          [+3/(ln(10)*x)    -3/(ln(10)*x)+3/(ln(10)*x)  -3/(ln(10)*x) =0]

          But it has nothing to do with the simplifier. You must do the sum,
          not the calculator. The simplifier simplifies EACH DERIVATIVE ONLY.

          Example: derivative of [ln(a*x/b)]

          [ln(a*x/b)]' = [(a/b)* x]' / ( (a/b)*x)= 1/x = x^-1

          Understood ?
         
          See you
          Thanks

EDIT:TheCalculator was updated.       

note: when we want to see the derivatives of N functions A,B,C,D,... the best way
           is to test [A+B+C+D+...]' = A' + B' + C' + D'+...     not one by one !
           
                                           http://masm32.com/board/index.php?topic=6197.0
HERE it is: functions and each derivative
Quote
Friday, 28-04-2017  19:09:04

input box=>     [log(x/b)       -log(x/b)    +log(-x/b)     -log(-x/b)
                +log(2*x/b)     -log(2*x/b)  +log(-2*x/b)   -log(-2*x/b)
                +log(x^2/b)     -log(x^2/b)  +log(-x^2/b)   -log(-x^2/b)
                +log(3*x^2/b)   -log(3*x^2/b)+log(-3*x^2/b) -log(-3*x^2/b)
                +log(x^3/b)     -log(x^3/b)  +log(-x^3/b)   -log(-x^3/b)
                +log(2*x^3/b)   -log(2*x^3/b)+log(-2*x^3/b) -log(-2*x^3/b)
                +log(a*x/b)     -log(a*x/b)  +log(-a*x/b)   -log(-a*x/b)
                +log(a*x^2/b)   -log(a*x^2/b)+log(-a*x^2/b) -log(-a*x^2/b)
                +log(a*x^3/b)   -log(a*x^3/b)+log(-a*x^3/b) -log(-a*x^3/b)]'    (-> =0)

solution box1=> 1/(ln(10)*x)    -1/(ln(10)*x)+1/(ln(10)*x)  -1/(ln(10)*x)
               +1/(ln(10)*x)    -1/(ln(10)*x)+1/(ln(10)*x)  -1/(ln(10)*x)
               +2/(ln(10)*x)    -2/(ln(10)*x)+2/(ln(10)*x)  -2/(ln(10)*x)
               +2/(ln(10)*x)    -2/(ln(10)*x)+2/(ln(10)*x)  -2/(ln(10)*x)
               +3/(ln(10)*x)    -3/(ln(10)*x)+3/(ln(10)*x)  -3/(ln(10)*x)
               +3/(ln(10)*x)    -3/(ln(10)*x)+3/(ln(10)*x)  -3/(ln(10)*x)
               +1/(ln(10)*x)    -1/(ln(10)*x)+1/(ln(10)*x)  -1/(ln(10)*x)
               +2/(ln(10)*x)    -2/(ln(10)*x)+2/(ln(10)*x)  -2/(ln(10)*x)
               +3/(ln(10)*x)    -3/(ln(10)*x)+3/(ln(10)*x)  -3/(ln(10)*x)   (-> =0)

RuiLoureiro

#25
Hi all
        TheCalculator was updated today.

Hutch,
         The Quick Editor doesnt replace all cases.
         When i have an expression with a lot of cases ( .../(x-b) )
         it replaces some cases but fails 2 or 3.
         e.g. replace "(x-b)" by "(x-3)". It fails some cases.

        http://masm32.com/board/index.php?topic=6197.0

Here the example

Replace text:  /(x-b)
by
text:         /(x+3)

See the result:
Quote
[a^((x-a)/(x-b))+exp((x-a)/(x-b))+e^((x-a)/(x-b))+10^((x-a)/(x-b))+ten((x-a)/(x-b))+ln((x-a)/(x-b))+lo
g((x-a)/(x-b))+sqr((x-a)/(x-b))+sin((x-a)/(x-b))+cos((x-a)/(x-b))+tan((x-a)/(x-b))+cot((x-a)/(x-b))+sec((x-a)/(x-b)
)+csc((x-a)/(x-b))+arcsin((x-a)/(x-b))+arccos((x-a)/(x-b))+arctan((x-a)/(x-b))+arccot((x-a)/(x-b))+arcsec((x-a)/(x-b))
+arccsc((x-a)/(x-b))+sind((x-a)/(x-b))+cosd((x-a)/(x-b))+tand((x-a)/(x-b))+cotd((x-a)/(x-b))+secd((x-a)/(x-b)
)+cscd((x-a)/(x-b))+arcsind((x-a)/(x-b))+arccosd((x-a)/(x-b))+arctand((x-a)/(x-b))+arccotd((x-a)/(x-b))+arcsecd((a
-x)/(x-b))+arccscd((x-a)/(x-b))+sinh((x-a)/(x-b))+cosh((x-a)/(x-b))+tanh((x-a)/(x-b))+coth((x-a)/(x-b))+sech((x-a)
/(x-b))+csch((x-a)/(x-b))+arcsinh((x-a)/(x-b))+arccosh((x-a)/(x-b))+arctanh((x-a)/(x-b))+arccoth((x-a)/(x-b))+arcs
ech((x-a)/(x-b))+arccsch((x-a)/(x-b))]

[a^((x-a)/(x+3))+exp((x-a)/(x+3))+e^((x-a)/(x+3))+10^((x-a)/(x+3))+ten((x-a)/(x+3))+ln((x-a)/(x+3))+lo
g((x-a)/(x+3))+sqr((x-a)/(x+3))+sin((x-a)/(x+3))+cos((x-a)/(x+3))+tan((x-a)/(x+3))+cot((x-a)/(x+3))+sec((x-a)/(x-b)
)+csc((x-a)/(x+3))+arcsin((x-a)/(x+3))+arccos((x-a)/(x+3))+arctan((x-a)/(x+3))+arccot((x-a)/(x+3))+arcsec((x-a)/(x-b))+arccsc((x-a)/(x+3))+sind((x-a)/(x+3))+cosd((x-a)/(x+3))+tand((x-a)/(x+3))+cotd((x-a)/(x+3))+secd((x-a)/(x+3)
)+cscd((x-a)/(x+3))+arcsind((x-a)/(x+3))+arccosd((x-a)/(x+3))+arctand((x-a)/(x+3))+arccotd((x-a)/(x+3))+arcsecd((a
-x)/(x+3))+arccscd((x-a)/(x+3))+sinh((x-a)/(x+3))+cosh((x-a)/(x+3))+tanh((x-a)/(x+3))+coth((x-a)/(x+3))+sech((x-a)
/(x+3))+csch((x-a)/(x+3))+arcsinh((x-a)/(x+3))+arccosh((x-a)/(x+3))+arctanh((x-a)/(x+3))+arccoth((x-a)/(x+3))+arcs
ech((x-a)/(x+3))+arccsch((x-a)/(x+3))]

RuiLoureiro

Hi all,
        TheCalculator was updated to a more powerful version 2017.06.

        Good luck  :t
:icon14:
                         http://masm32.com/board/index.php?topic=6197.msg66982#msg66982

newrobert

2017.6? too earyly?
only exe file, not source code?

RuiLoureiro

Quote from: newrobert on May 21, 2017, 09:34:13 AM
2017.6? too earyly?
only exe file, not source code?
Hello Robert,
                    Did you test the version 2017.06 ?
                    And what do you say about it ?
See you
:icon14:
                            http://masm32.com/board/index.php?topic=6197.msg66982#msg66982

newrobert

i try it, and i see there are vector or matrix define and opperate, as you know matrix have three common operation in 3D space,
move,scale and rotate, so in the future, are there the 3x3 matrix to support it?