Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

@Stephen Forrest 

So once I've loaded the file for example

a:=Import("https://sdo.gsfc.nasa.gov/assets/img/browse/2023/05/05/20230505_184918_512_0304.jpg")

It's a 63kb file

How do I write the file?
If I use

ImageTools:-Write("c:/test/20230505_184918_512_0304.jpg",a)
                                           

It doesn't write all the bytes.  How do i write all the bytes?  Or does it need to?  Why doesn't it?

I'm using windows 7.  It could be a windows setting somewhere.

**edit add** It works on my other laptop windows7, there were some issues that were coming up but they disappeared and then it worked - both using firefox but I doubt the browser has anything to do with it. 

I might be on my own here if no one else has experienced, or is experiencing, the same issue.

@Stephen Forrest Thanks but still doesn't work - same error.  I failed to mention I'm using Maple 2020.

@ecterrab alias:-Show is almost a hidden undocumented functionality.  Thanks for showing that example!  It would be helpful to include that in on the alias help page. 

@Carl Love , yes thank you for the correction.  Also, before Acers reply I was improperly using assume, and his clarification cleared it up.

@acer Thank you for the explanation

@acer ok, I thought it could be done. 

Only kludgery will work to get +x as a leading term.  Imagine sort had the ability to sort powers? (but I digress).  There's no real vaue in doing so, except for asthetics or preferences. 

So back to the original challenge, here's my kludgery

eq:=-x^3-x^2+x-1:
eq1:=algsubs(-x^3-x^2=u,eq):

                             
 

sort(eq1,x)

                               

eq2:=subs(u=``(-x^3-x^2),eq1)

                             

@acer Using subs you can get Maple to output your second instance of the toy equation as

b*(a - Q - a*sqrt(f)) - b*(a - K - a*sqrt(f)) - b^2 - 1

Thanks dharr for the map alternative.

Thanks acer for the seq options.

Maybe I should also be considering Threads:-Seq or Grid:-Seq?

Upload your worksheet. 

Likely something offscreen or something that's been done we can't see.  Uploaded your worksheet will help us further diagnose the issue. 

** You probably have a Maple initialization file that contains code generating the error.  So every new document will contain this error because it runs the initialization file automatically. 

** You could also try interface(typesetting=standard) and see if the issue goes away. 

The sunspot periodicity worksheet needs to be modified as below.  The actual location is here https://data.nasdaq.com/data/SIDC/SUNSPOTS_A-total-sunspot-numbers-annual. 

However, in order for the worksheet to operate as normal you must first register for a free account where you will get an API key which you will set and add in maple, with this line

DataSets:-Quandl:-SetToken("Enter your API key here")

After which the worksheet will function normally.  All of the the data values have also all been updated to newer calculated values. 

Also more recent up to date data can be found here https://www.sidc.be/silso/datafiles#total

Ah.  Ok, a little rusty.  

Clicking on the editable box on the bottom

allows access to the start up code region. 

Without seeing what the op has done, It appears dareimert is plotting an equation with a variable assigned to itself. 

He's doing something like this:

c:=c+4

plot(c)=   which will throw the exact error he is describing.

Try, s2[1] or op(s2)[1]

@acer ah.  ok thanks.

I guess padding without the ImageTools package I could just pad the Matrix like this.

a := Matrix(16, 16, rand(0. .. 1.0)):
b := Matrix(18, 18, 0):
b[2 .. 17, 2 .. 17] := a:
b;
5 6 7 8 9 10 11 Last Page 7 of 156