Adam Ledger

Mr. Adam Ledger

335 Reputation

11 Badges

4 years, 282 days
unemployed
hobo
Perth, Australia

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are questions asked by Adam Ledger

I am looking for advice as to avoiding or identifying what may elude to the cause of the error "Error, (in simplify/do) invalid simplification command" in circumstances where i have simply enclosed an expression with simplify(expression), and in most cases an error is not returned.

 

Thankyou in advance

Ah yep so i have been trying to arrange this so that it returns the number of iterations required to reach a single digit value but like everything i do this week completely useless 

 


 

 

restart

unprotect(delta):

delta := proc (x, y) options operator, arrow; piecewise(x = y, 1, x <> y, 0) end proc

then the j th summand of the first digital root of 'a' in base 'b'. can be expressed as:

d := proc (a, b, j) options operator, arrow; sum((delta(j, k)-b*delta(j, k+1))*floor(a*b^(k-floor(ln(a)/ln(b))-1)), k = 1 .. floor(ln(a)/ln(b))+1) end proc:

R[0] := proc (a, b) options operator, arrow; sum(sum((delta(m, k)-b*delta(m, k+1))*floor(a*b^(k-floor(ln(a)/ln(b))-1)), k = 1 .. floor(ln(a)/ln(b))+1), m = 1 .. floor(ln(a)/ln(b))+1) end proc

proc (a, b) options operator, arrow; sum(sum((delta(m, k)-b*delta(m, k+1))*floor(a*b^(k-floor(ln(a)/ln(b))-1)), k = 1 .. floor(ln(a)/ln(b))+1), m = 1 .. floor(ln(a)/ln(b))+1) end proc

(1)

DigitalRoot := proc (a, b, N) options operator, arrow; foldl(R[0], R[0](a, b), seq(b, k = 1 .. N)) end proc

proc (a, b, N) options operator, arrow; foldl(R[0], R[0](a, b), seq(b, k = 1 .. N)) end proc

(2)

MAIN BASIC EXAMPLE

SELECT THE NUMBER:

a := 345346462

345346462

(3)

 

 

SELECT THE NUMBER BASE FOR WHICH YOU WISH TO REPRESENT a:

b := 10

10

(4)

The output will be the digits of the  base b representation of a, (or the coefficients of it's p-adic expansion?):

seq(d(a, b, j), j = 1 .. floor(ln(a)/ln(b))+1)

3, 4, 5, 3, 4, 6, 4, 6, 2

(5)

DigitalRoot(a, b, 0), DigitalRoot(a, b, 1), DigitalRoot(a, b, 2)

37, 10, 1

(6)

n := 0:

37

 

0

(7)

``

``


Sorry EDIT its ok i got it old_garbage_2015002.mw

Download old_garbage_2015.mw

Hello i keep getting an error saying that maple expects an integer as it's argument but i has an integer so it is sort of the same thing like when a cat has a full bowl of biscuits and it is going mental at you to feed it, in every other circumstance i would'nt get this error and i even did an assume(k::integer) for the index of the series omega appears, still no. 

 

I am refering to the number theory package bigomega function btw

Ok for some reason Get-Property doesnt work here but it does in another worksheet but anyway that problem isnt really what im posting for help for, i want general advice on the asthetic lay out of education tools.

 

The example i am doing tonight is pretty standard, i want to have a window where the student can play around with the recurrence relation making little alterations as he or she is curious about,  then hit a button to produce the first N values of the sequence, but see the problem i always get is that i dont care how messy or easy to use anything is because i am the one that wrote the code, so the features of such an analysis tool are redundant in the fact that i know how to use maple to a reasonable extent, but i want to make education  tools that are focused purely on the mathematics, removing the programming and all of that nonsense from the students focus here, so, i need advice for this given this stated objective.

 

Also forgot to mention, i already know how to get all the embedded components working together, this part isnt the problem i am referring to. I mean to say how can i best present the interface of these tools given what i can make in maple.

 


 

restart; with(DocumentTools); with(numtheory); with(StringTools); with(DocumentTools)

S[0]:   

s := proc (n) options operator, arrow; S[n-1]^2-2 end proc:

INIT0 := 4:

SOLVEfirstNterms(4)

[14, 194, 37634, 1416317954]

(1)

``


 

Download MAPLE_HELP_RECURRENCE_SEQUENCE_ANALYSIS_TOOL.mw

Hi, i will post the executed code so you can see what i am saying, essentially i want to know what i am doing wrong here to have simplify not work as a command line function but  it does when i right click the output and select it and the equation label of that output is inserted as the oprand.

I feel like maple is not wanting to be entirely forthcoming with me today or something, but in a more deeper contemplation, i see that refering to the maple interface as if it is a sentient entity is a true indication that i need a social life.

 

But as you will see, the same failure occurs for the ListTools partial sums feature when implemented in commandline code, but works perfectly well when it is selected by right clicking on the output intended 

Download MAPLE_PLEASE_HELP_aGAIN.mw

 

Download MAPLE_PLEASE_HELP_aGAIN.mw

First 17 18 19 20 21 22 23 Last Page 19 of 34