Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

** Community Tip** - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more!
X

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Oct 19, 2021
04:27 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 19, 2021
04:27 PM

Unit issues

My goal is to produce a graph of ST vs pi(c) which is a variable from 5-60 with increments of 2 (dimensionless value). I have no idea why the value of tau(c) on the graph has an error and it said that this value must be a scalar. the value tau(c) should be dimensionless as well. Any help would be greatly appreciated.

Labels:

3 REPLIES 3

Oct 21, 2021
01:33 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 21, 2021
01:33 PM

@JC_10087629 wrote:

Your problems arise because you have defined tau.c and tau.t as functions [*the notation f(x):=3x defines a function f with a single parameter x].*

You've also defined them as parameters to ST, which would be OK (if somewhat open to misinterpretation). However, plot neither knows nor cares what names you give to a function's parameters. All the plot knows is that you taus are function - hence, the error

Stuart

PS. Forum etiquette prefers it if you post a worksheet.

- It saves people typing in everything (and potentially making a mistake).
- Some errors are difficult to see from an image, eg vector index vs name subscript.

Ideally, one should post both an image and a worksheet.

Oct 21, 2021
01:50 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 21, 2021
01:50 PM

Now the solution is pretty simple:

That is: Call the function ST with the proper parameters, functions in your case.

Success!

Luc

Oct 21, 2021
04:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Oct 21, 2021
04:18 PM

You could also:

Which gives (something like):

And following that, plot ST simply with:

Success!

Luc