Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5972799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:42:34+00:00 2026-05-22T20:42:34+00:00

There was a question on mathgroup, and while I was looking at it, I

  • 0

There was a question on mathgroup, and while I was looking at it, I noticed this thing, and I can’t understand why, I thought some expert here would know.

When doing Dt [ x[1] ]

it gives zero, because during evaluation of x[1], the last value left is 1, as can be seen from the TracePrint below. And hence ‘1’ is what is seen by Dt, and so Dt[1] is 0.

Hence Dt[ x[1] ] is zero

In[86]:= TracePrint[ Dt[x[1] ]]

During evaluation of In[86]:=  Dt[x[1]]
During evaluation of In[86]:=   Dt
During evaluation of In[86]:=   x[1]
During evaluation of In[86]:=    x
During evaluation of In[86]:=    1
During evaluation of In[86]:=  0

Out[86]= 0

That made sense to me, until I typed x[1], and got back x[1]

In[84]:= x[1]
Out[84]= x[1]

But x[1] returning x[1] also made sense to me, since x[1] has no value, so it should return unevaluated.

So, my question, is why it seems that x[1] was evaluated all the way down to ‘1’ during the call above, but at the top level notebook interface, it did not evaluate to 1?

In[87]:= Evaluate[ x[1] ]
Out[87]= x[1]

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:42:35+00:00Added an answer on May 22, 2026 at 8:42 pm

    The expression

    x[1]
    

    does not evaluate to 1 – it is an indexed variable with undefined value. The problem is that when you use the form of Dt with 1 argument, then x is considered a function, and 1 – its argument, and you get 0. This becomes clearer when you consider

    In[1]:= Dt[x[y]]
    
    Out[1]= Dt[y] Derivative[1][x][y]
    

    If you now use

    In[2]:= Dt[x[1],x[1]]
    
    Out[2]= 1
    

    you get 1, since now you differentiate over x[1] considered as a variable. Or,

    In[3]:= Dt[x[1]^2, x[1]]
    
    Out[3]= 2 x[1]
    

    You were confused by evaluation printout since indeed, when evaluating an expression, all parts are normally evaluated – but (in the absense of any rules for x), x[1] evaluates back to itself also inside Dt, to be sure. What you observed is related to how Dt with one argument interprets that argument.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are similar question, but not regarding C# libraries I can use in my
There is a question here in stackoverflow with the same title but that is
This question assumes there's a blessed central repository that members of a team clone
Here is the question: There are 5 sorted list A,B,C,D,E, which has the same
Which is more efficient, "data.Length==0" or "data==string.Empty"? in this question there was an answer
I know this is the repeat question.There are many similar questions are there in
I just wrote this exam, in which there was question: Consider a array of
As similar to this question (there are more related entries, however as a new
This is an interview question There is an array of integers. The elements in
I have a fairly simple system, and for the purposes of this question there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.