Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with commas and functions of two variables #4

Closed
nielsle opened this issue Mar 8, 2020 · 3 comments
Closed

Problems with commas and functions of two variables #4

nielsle opened this issue Mar 8, 2020 · 3 comments

Comments

@nielsle
Copy link

nielsle commented Mar 8, 2020

Hi Michael

I have some problems with using comma as argument separator when calculating partial derivatives of functions of two variables in wordmat. Here is an example

f(x,y):=x^2+y^2
f_x'(x, y) = 2*x
f_x'(2, 3) = 4,6   // I had expected either 2*2=4 or an error

Attached example file in Danish
funktioner_af_to_variable_i_wordmat.docx

Kind regards
Niels

@Eduap-com
Copy link
Owner

Thank you. I will have a look at it.

@Eduap-com
Copy link
Owner

The problem is that WordMat sees 2,3 as the number 2,3 and not two different numbers 2 and 3. Hence x=2,3.
This can be resolved by putting a space after the comma 2, 3 (as you do in the text above, but not in the Word document) as WordMat then recognized this as two numbers and internally replaces , y ;
Thanks for attaching the docx file making it easy to resolve.
I can see that this could potentially throw students off, and it would be better with an error, but I am not sure how to change this as it depends on Maxima behavior.

@nielsle
Copy link
Author

nielsle commented Mar 8, 2020

Thank you for the quick response. I was mostly worried about the following line

f(x, y) := x^2+y^2
f_x'(2,3) =4,6   // because 2*2.3=4.6

As I see it f_x'(x,y) is function of two variables, so if wordmat interprets 2,3 as a Danish decimal number, then I would prefer wordmat to fail with a warning saying

Too few arguments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants