jjrohal

10 Reputation

2 Badges

14 years, 106 days

MaplePrimes Activity


These are replies submitted by jjrohal

@Adri van der Meer 

I agree that the directories are different, but if "myworksheet.mw" is located in "/Users/Jim/projects" on my Mac, shouldn't currentdir() return "/Users/Jim/projects"?

@Adri van der Meer 

Strangely, executing

currentdir();

in OSX yields

"/Library/Frameworks/Maple.framework/Versions/17/bin.APPLE_UNIVERSAL_OSX"

while in Windows yields

 "C:/projects"

as desired. Why is this different depending on the platform?

To give you some insight into why I was using evalm consider the following example.

INPUT
  [1,2] + [3,4]*(x-1)^2
OUTPUT
  [1 + 3*(x-1)^2, 2 + 4*(x-1)^2]

The issue with using expand can be seen in the following:

> expand([1,2] + [3,4]*(x-1)^2);

[3*x^2 - 6*x + 4, 4*x^2 - 8*x + 6]



To give you some insight into why I was using evalm consider the following example.

INPUT
  [1,2] + [3,4]*(x-1)^2
OUTPUT
  [1 + 3*(x-1)^2, 2 + 4*(x-1)^2]

The issue with using expand can be seen in the following:

> expand([1,2] + [3,4]*(x-1)^2);

[3*x^2 - 6*x + 4, 4*x^2 - 8*x + 6]



Page 1 of 1