Get Help

Turn on suggestions

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

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- solve function without a symbolic answer

Options

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

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

Showing results for

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

01-22-2021
10:24 AM

01-22-2021
10:24 AM

is there a way you can make solve not make the symbolic answer and go directly to the numeral solution. when i turn in rapports is seems unnecessary to include it. i linked an example. just to be clear i want the big unusable chunk in the middle out.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

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

01-22-2021
11:37 AM

01-22-2021
11:37 AM

Yes it is possible to get a numeric answer straight away. There are two options:

1.

Define C() as a function of all (other) symbols in the expression, and use the symbolic solve to get its expression.

The call C() with the actual numerical values supplied as arguments, in numerical evaluation.

Here's an example:

2.

Use not the symbolic *solve* but use the numeric **root()** function.

Success!

Luc

9 REPLIES 9

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

01-22-2021
11:37 AM

01-22-2021
11:37 AM

Yes it is possible to get a numeric answer straight away. There are two options:

1.

Define C() as a function of all (other) symbols in the expression, and use the symbolic solve to get its expression.

The call C() with the actual numerical values supplied as arguments, in numerical evaluation.

Here's an example:

2.

Use not the symbolic *solve* but use the numeric **root()** function.

Success!

Luc

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

01-22-2021
01:11 PM

01-22-2021
01:11 PM

Re: solve function without a symbolic answer

how would the root function look for this because i cant seem to make it work

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

01-22-2021
12:52 PM

01-22-2021
12:52 PM

Re: solve function without a symbolic answer

I guess that the use of the root function as suggested by Luc seems to be the most straight forward way.

His functional approach is the way I would prefer, though.

If you want to use the symbolic "solve" the way you did, you should use additional the "simplify" command.

Furthermore it looks like you ran into a problem with Primes infamous autolabeling - the various Omega seems to be labelled differently as otherwise the symbolic (which does not know anything about units) would collect and/or cancel them.

It also seems that you don't use units consequently as C comes out dimensionless in your picture. Or you didn't use any units at all and your Omega was meant to be a lower case omega (s = j*omega) ?

A word of caution: When using symbolic evaluation you should use the modifier "float" with great care, because it not only affects the display of the result but also limits the precision of the whole calculation!

You may consider posting the worksheet.

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

01-22-2021
01:32 PM

01-22-2021
01:32 PM

Re: solve function without a symbolic answer

i tried to use units in the function altogether but that wouldnt work so i ended up removing the units from all of them and then manually putting units on C to get units on the result. but anyway here is the sheet

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

01-22-2021
01:55 PM

01-22-2021
01:55 PM

Re: solve function without a symbolic answer

If you work with units, then s must be of dimension frequency, unit Hz or 1/s

And you'll have to check your equations, especially:

As r is a length (9 cm), you can't add it to a scalar (10*1=10).

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

01-22-2021
04:47 PM

01-22-2021
04:47 PM

Re: solve function without a symbolic answer

i know that you cant add a unit to something without unit, which is why i removed all units. the problem is that this is some wierd function. our teacher told us there were "hidden units" so the 9 that is multiplied by the radius might have some unit, but i dont know which.

the 10*1 isnt a scalar the 1 has the unit mm but i removed mm from it since i removed all units. if i gave units to the 1 and the radius the answer would be given in meters which i know is wrong. The formula has stated that the answer is in Henry so i just put that in the end.

Yeah i know but s is unit Hz but if i give all components of the C equation units it says the units dont match up which is because of the part in the picture, however the formula for Ztrans is a formula given by the teacher so i doubt that it's wrong. i linked the 2 formulas given by the teacher

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

01-22-2021
07:26 PM

01-22-2021
07:26 PM

Re: solve function without a symbolic answer

If A, the length of winding in cm, is not 1 cm, then,

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

01-23-2021
12:46 AM

01-23-2021
12:46 AM

Re: solve function without a symbolic answer

The formula given for the calculation of the self inductance is the approximation formula by Wheeler. Its an empirical formula which expects dimensionless variables representing the exact units given in the explanation for that formula. I would suggest to divide by the appropriate units directly in the formula rather than tampering with the variables:

But I doubt the correctness of the formula given for Z.s ! Either it should be named Y.s=.... and Y.s=1/Z.s or you have to switch nominator and denominator.

make a simple unit check - the fraction as shown in the screenshot gives you the complex conductivity (usually named Y) and not the complex resistance!

Using the correct units you may solve for C symbolically

but you can also use Prime numerical methods, which are

1) a solve block:

or 2) the "root" command

You may notice the very small imaginary parts we get when using numerical methods which actually should be zero. You may cope with that by using just the real part or using the absolute value:

Prime 6 worksheet attached

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

01-23-2021
03:48 AM

01-23-2021
03:48 AM

Re: solve function without a symbolic answer

I didn't think about removing units in the formula i will for sure do that in the future. and thanks for showing the multiple ways to get a numeral solution.