Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
please write some more documentation
#31
Macro Macro1469
Code:
Copy      Help
out
; Generate the square root of a number between c to b
int i c b
c=2
b=101
ARRAY(int) a
for(i c b) a[]=i ;;adds and sets 1 element
for(i 0 a.len) out F"The square root of {a[i]} is {sqrt(a[i])%%.13f}"
#32
Gintaras,

O great one, you never failed me. This is great for any routine math generations. Name the file as
QMMathGenerator. For this example just change:

; Generate the square root of a number between c to b

to
; Generate the square root of a number from c to (b-1)

and everything should work great.
For the reader's effort try squaring and cubing generations from 1 to 100.

Thanks a million.

Josh
of California
#33
Something still missing with QM? Some trigonometric functions are not illustrated elswhere.
I think these features should be added for completeness sake.

example the sine function can be generated using function of x series:

This will only prove then that the QM is compatible with some automation programs around.
These functions would be adding greatness to The Vigs existing calculator program to an
extension scientific calculator program.

Josh
of California

BREAKTIME
#34
Look in math category.

Code:
Copy      Help
math.sin
#35
Gintaras,

kindly show an example say how to get sin (30 degrees) and arcsin(30 degrees)

There are no examples I can find . Please lead me directly and thanks for your patience.
#36
http://msdn.microsoft.com/en-us/library ... 71%29.aspx
http://msdn.microsoft.com/en-us/library ... 71%29.aspx

Macro Macro1536
Code:
Copy      Help
double degrees=30

def PI 3.1415926535897932384626433832795

double s=sin(degrees*PI/180) ;;converst degrees to radians and calculates sin
double a=asin(s)*180/PI ;;calculates arcsin and converts radians to degrees
out s
out a
#37
Thanks Again Gintaras

I am therefore attaching the QM macro to generate a table for
sin , cos and tan from zero to 90 degrees just for the learning use of others.    
#38
END OF BREAKTIME and going back to the real world ftp inquiry.

Gintaras,

Going back to your Sept 7, 2010 response. Kindly please end my frustrations on
understanding your instructions below as I am novice to these trigger commands.
I believe other novice users will appreciate and benefit tremendously from these as well.

Please explain the first two lines with ? (line 1 and line2)the simplest way possible to generate these commands

It seems that you are trying to set the downloading/uploading icon on the upper left hand of the windows(macro line 3 and 4)
Am I right?

Function qm_internet_progress_dialog_pos ? ........... ..................... line1
Trigger !cv"Downloading" "#32770" "" "" "" 0x2 ? ................................. line2
int hwnd=val(_command)................................................................ line3
mov 0 0 hwnd ............................................................................ line4

A million thanks,

Josh
of California
#39
QM generates these 2 lines and code when you copy macro using QM menu Edit -> Other Formats -> Copy for QM forum. And stores in clipboard. Then you can paste in your post.
#40
Gintaras,

I went to the forum and I was overwhelmed with about 33 wordly pages all about
triggers
more than the other properties of QM. My honest take on this is that lhe best presentation
to over simplify these is thru video presentations.

Thank you,

Josh
of California
#41
VISUAL PRESENTATION (DOCUMENTATION)

Now since this is the age of the Apple i phone, i pad, i touch , and the htc's creating visual video presentation
work like a charm and affordable.
I think we need to spend more time to resort to these technology to make our lives less stressfull and for the
betterment of our community. How about using these for our QM visuals,,,,like learning how to use "trigger"
for example.

Let us all move on.

Thanks,

Josh
of California


Forum Jump:


Users browsing this thread: 1 Guest(s)